selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

Selectize removes options field tags in the dom.

Open desheikh opened this issue 12 years ago • 3 comments

Calling selectize on a select field removes the 'option' tags from the hidden 'select' tag in the dom. This becomes an issue for us since our existing test suite interacts with the actual select fields and now break after applying selectize on them. Is is possible for selectize to work without modifying the existing dom elements? Select2 for example does this.

desheikh avatar Oct 15 '14 16:10 desheikh

This causes unnecessary coupling with Selectize. Code that needs to manipulate selects (something as basic as getting the selected option's text) must call $e[0].selectize.getOption(...), $e[0].selectize.items, etc...

sshaw avatar Nov 01 '14 07:11 sshaw

See #39

sshaw avatar Nov 01 '14 07:11 sshaw

Thanks! closing this and referencing the issue there.

desheikh avatar Nov 01 '14 16:11 desheikh