Skip to content

Commit

Permalink
Revert "Fixes a small potential bug on headless switch component (#933)…
Browse files Browse the repository at this point in the history
…" (#935)

This reverts commit b20fd4d.
  • Loading branch information
Lysander authored Feb 4, 2025
1 parent b20fd4d commit 3991920
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ abstract class AbstractSwitch<C : HTMLElement>(
attr(Aria.checked, enabled.asString())
attr(Aria.invalid, "true".whenever(value.hasError))
attr("tabindex", "0")
value.handler?.invoke(this, clicks {
stopImmediatePropagation()
preventDefault()
}.map { !value.data.first() })
value.handler?.invoke(this, clicks.map { !value.data.first() })
value.handler?.invoke(
this,
keydownsIf {
Expand Down

0 comments on commit 3991920

Please sign in to comment.