[Bug]: Event gets triggered even when option is not changed #23109
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
In a TreeSelect widget, on configuring an event for the onOptionChange
property we see that the said event gets triggered even when we do not change the selected option.
Steps To Reproduce
- D&D a TreeSelect widget.
- Configure the
onOptionChange
event in such a way that we get to see an alert once we change the selected option. - Now open the dropdown of the widget & click on the already selected option.
Expected: The onOptionChange
event should not get triggered as we did not change the option.
Actual: The event gets triggered.
Public Sample App
No response
Environment
Production
Issue video log
https://www.loom.com/share/48d0980974e646e9b08af14840755430
Version
Cloud