[Dropdown] should have onBeforeAdd() callback #951
Labels
lang/javascript
Anything involving JavaScript
state/has-pr
An issue which has a related PR open
type/feat
Any feature requests or improvements
Feature Request
Description
onAdd() is called for multiple select dropdown which only receives the added value. There is no way to modify the value itself before it is added.
Use Case
I'm making a custom multiple select dropdown component for tags. Tags could be selected from the dropdown and can also be typed into the dropdown component. So the component is supposed to convert the value to slug. The value should be reflected in the UI as well (the label should be a slug), which doesn't happen now.
If onBeforeAdd() is supported, it would be possible to slugify the value in it.
The text was updated successfully, but these errors were encountered: