fraserxu / fraserxu/react-dropdown

onChange event is triggered without any change

Open
#162 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
673
Forks
249
PR merge metrics
No merged PRs in 30d

Description

If a Dropdown is set to some option and the same option is selected in the browser again ( no changes ), the onChange event is nevertheless triggered. So it acts as if it would be "onSelect" event.
Should be:
- Either an exactly understood "onChange" should be triggered only if the selected option differs from the previously set one;
- or the event handler should be renamed to "onSelect";
- or at least the above described behavior should be inserted into docs

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.