Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(toggle): Selected item can be deselected on second click #167

Merged
merged 8 commits into from
Oct 28, 2021

Conversation

yasincaliskan
Copy link
Contributor

@yasincaliskan yasincaliskan commented Oct 27, 2021

Description

  • Selected toggle item was not being deselected on a second click before.
  • This behavior was available only for multiple toggle items.
  • Toggle handler moved to the input component. We need to use onChange to be able to avoid uncontrolled component issues. And I needed to use onClick because onChange was triggering for only selecting behavior.

Fixes: #165

@yasincaliskan yasincaliskan merged commit 2d7a34b into next-release Oct 28, 2021
@mucahit mucahit deleted the feat/deselectable-toggle-item branch March 11, 2022 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants