[go: up one dir, main page]

Skip to content

GlToggle: clicking the toggle icon fails to change state of toggle

Please close if this is the intended functionality 🙏

Bug description

Clicking the icon on GlToggle doesn't trigger a state change. One must click outside the icon to trigger a state change.

bug

Expected behavior

I expected to be able to click anywhere on the toggle to trigger a state change.

fix

Possible fix

  • Add pointer-events: none; to .toggle-icon classThis results in the following behavior:
  • preventDefault on button click (@click.prevent)
Edited by Tom Quirk