Skip to content

[Bug]: Event gets triggered even when option is not changed #23109

Closed
@shadabbuchh

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

  1. D&D a TreeSelect widget.
  2. Configure the onOptionChange event in such a way that we get to see an alert once we change the selected option.
  3. 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

Metadata

Labels

BugSomething isn't workingGood First IssueGood for newcomersLow effortTakes 1-2 daysMediumIssues that frustrate users due to poor UXProductionTreeSelectIssues related to TreeSelect WidgetWidgets & Accelerators PodIssues related to widgets & AcceleratorsWidgets ProductThis label groups issues related to widgets

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions