When selectize is applied to a select, its options' data attributes are removed.
<select id="s">
<option value="foo" data-bar="baz" selected>Foo</option>
</select>
var $s = $("#s");
alert($s.find("option:selected").data("bar"));
$(s).selectize();
alert($s.find("option:selected").data("bar"));
Have fixed this in PR #1206, although I now see this fails a test. Think the test may need rewriting. Maybe someone else can assist.
this is fairly important, any movement on this?
+1 to this. I think all data-attributes on select and options should be preserved.
+1 to this. as well
+1
+1
@joallard @brianreavis please merge
+1
+1
+1
+1
+1
+1
+1
+1
+1
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
Everything you should not do.
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.