Open
Description
I'd like to combine remote options with the virtual scroll tom select plugin, which requires a custom load
callback.
I can't do that because the combo-box-hook.js replaces this callback even if it's defined in my globalOpts
:
if (remoteOptionsEventName) {
tomSelectOptions.load = (query, callback) => {
const handleServerReply = (payload, ref) => {
const resultsJSON = payload.results.map(({ text, value }) => ({
text,
value,
}));
callback(resultsJSON);
};
Behaviour could be to not overwrite the callback if I defined my own in globalOpts and let me handle the complex loading on my own (if that's even possible in tom select to use both plugins at the same time).
Metadata
Metadata
Assignees
Labels
No labels