Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.21k stars 4.05k forks source link

feat(Dropdown): add allowReselection prop #4450

Open CofCat456 opened 9 months ago

CofCat456 commented 9 months ago

Fixes https://github.com/Semantic-Org/Semantic-UI-React/issues/4415

This PR adds the allowReselection prop to the Dropdown. This enables user to trigger onChange events even when reselecting same value.

I think I've resolved the issue. If there are any omissions or areas that need modification, feel free to provide suggestions!

welcome[bot] commented 9 months ago

💖 Thanks for opening this pull request! 💖

Here is a list of things that will help get it across the finish line:

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.51%. Comparing base (e243fa4) to head (1c170d8). Report is 11 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4450 +/- ## ========================================== - Coverage 99.51% 99.51% -0.01% ========================================== Files 186 186 Lines 3512 3511 -1 ========================================== - Hits 3495 3494 -1 Misses 17 17 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.