brianvoe / slim-select

Slim advanced select dropdown
http://slimselectjs.com
MIT License
1.03k stars 195 forks source link

The "addable" callback is not triggered when the search bar is empty #528

Closed Wykaz closed 5 months ago

Wykaz commented 5 months ago

Describe the bug The "addable" callback is not triggered when the search bar is empty

You can test it on this link : https://slimselectjs.com/events#addable

If this is how it's supposed to work, could there be an option in the "Option" object?

Can you fix this to give more freedom to the use of slim-select?

brianvoe commented 5 months ago

no thanks. not broken. if your allowing people to add an empty I think you might want to reconsider your approach to the problem.

Wykaz commented 5 months ago

Would it work if we set an option such as allowEmptyAddable in the Option object to false by default?

brianvoe commented 5 months ago

No thanks

brianvoe commented 5 months ago

No thanks