mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Merge pull request #12170 from ToolJet/fix/dropdown-clear-btn
Fix: In Dropdown, call "on select" event when user clicks on clear button
This commit is contained in:
commit
88e54bcb46
1 changed files with 1 additions and 0 deletions
|
|
@ -436,6 +436,7 @@ export const DropdownV2 = ({
|
|||
onChange={(selectedOption, actionProps) => {
|
||||
if (actionProps.action === 'clear') {
|
||||
setInputValue(null);
|
||||
fireEvent('onSelect');
|
||||
}
|
||||
if (actionProps.action === 'select-option') {
|
||||
setInputValue(selectedOption.value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue