Select onChange is not being triggered when e.target.value is the selected value #20698
Closed
2 tasks done
Labels
component: select
This is the name of the generic UI component, not the React module!
out of scope
The problem looks valid but we won't fix it (maybe we will revisit it in the future)
Select component - onChange is not being triggered when e.target.value is the selected value
Current Behavior 😯
onChange isn't being triggered in case the clicked menuItem is the selected one.
Expected Behavior 🤔
onChange should be triggered in that case
Steps to Reproduce 🕹
example - https://codesandbox.io/s/angry-volhard-lzssz?file=/src/App.js
Steps:
Context 🔦
I have a select of dates (one week, one month, etc & custom date). When selecting the custom date a date range picker is being opened and allow selecting specific date range. Now when I want to select another custom date, my selection doesn't trigger my date range picker.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: