Hi,
so I'm using the city/state example and it works for loading remote data correctly, but not when the data is already filled when the page is requested.
Adding these settings to selectize:
valueField: 'name',
labelField: 'name',
searchField: ['name']
break the default browser behaviour (when selectizing an html select with options filled).
Example:
I create a user and select its state and city. Now I open the edit page and the city select has no options, the usual solution is to send the HTML with the options inside (without an extra ajax call) but these options won't come with the "name" field and selectize will have the options undefined
. I don't think doing an ajax call should be required.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4