Closed shananton closed 1 year ago
There were two reasons for this:
TomSelect
was designed as a replacement for the old BootstrapSelect
component from KVision 5, which had a search option but was not searchable by default.I agree these are not very strong arguments and I'm willing to remove this constraint. I'll just add a new disableSearch
option to make it explicit.
Fixed in 6.6.0
The
TomSelectInput
component has this line ingetSettingsObj()
:This disables some built-in
TomSelect
functionality, including being able to search options, and almost turns it into a simpleSelect
. I'm not sure what's the logic behind this (why should the lack of a placeholder stop the user from being able to search?) and I could not find mentions of this in the docs...I'd appreciate if you could either fix this or elaborate why it's done as it is (and maybe update the docs) :upside_down_face: