Skip to content

Commit 71a1f80

Browse files
committed
Merge branch 'tokenSeparators_for_select2_tags'
2 parents 01c27aa + a259de7 commit 71a1f80

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/inputs/tags_input.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def load_control_attributes
1313
load_data_attr(:model, value: model_name)
1414
load_data_attr(:method, value: method)
1515
load_data_attr(:width, default: "80%")
16+
load_data_attr(:token_separators)
1617

1718
if active_record_select?
1819
load_data_attr(:relation, value: true)

app/javascript/activeadmin_addons/inputs/tags.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var initializer = function() {
1818
multiple: true,
1919
tags: true,
2020
data: collection,
21+
tokenSeparators: $(el).data('tokenSeparators'),
2122
};
2223

2324
if (!!isRelation) {

0 commit comments

Comments
 (0)