So, if I set up the filterOptions like this (really dummy test, it just remove all the default filters):
filter: function (options, filter, currentValues) {
return options
}
It breaks and prompt this error:
Uncaught TypeError: Cannot read property 'length' of undefined
This piece of code:
getFirstFocusableOption: function getFirstFocusableOption(options) {
for (var optionIndex = 0; optionIndex < options.length; ++optionIndex) {
if (!options[optionIndex].disabled) {
return options[optionIndex];
}
}
},
I've followed the stacktrace and it's always undefined.
Any idea?
So, if I set up the filterOptions like this (really dummy test, it just remove all the default filters):
It breaks and prompt this error:
Uncaught TypeError: Cannot read property 'length' of undefinedThis piece of code:
I've followed the stacktrace and it's always undefined.
Any idea?