onSelect event gets triggered when dropdown value is cleared using clear button.

This commit is contained in:
devanshu052000 2025-01-09 12:17:52 +05:30
parent 679811ad76
commit ac36acd9c1

View file

@ -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);