Skip to content

Commit 74a2805

Browse files
committed
Merge pull request select2#1081 from gboer/patch-2
Fix for when you specify tags using JSON-encoded select2-tags-attribute.
2 parents 4a1c849 + ea39b25 commit 74a2805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ the specific language governing permissions and limitations under the Apache Lic
794794
if ("tags" in opts) {
795795
throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");
796796
}
797-
opts.tags=opts.element.attr("data-select2-tags");
797+
opts.tags=opts.element.data("select2Tags");
798798
}
799799

800800
if (select) {

0 commit comments

Comments
 (0)