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

Fixes a small potential bug on headless switch component #933

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

Lysander
Copy link
Collaborator

The click-event is now correctly handled by stop propagating it and preventDefault as the headless component will do all the work.

This could have led to bugs when using the component with explicit DataBinging, where the handler-lambda would be used to intercept the update call.

The `click`-event is now correctly handled by stop propagating it and `preventDefault` as the headless component will do all the work.

This could have led to bugs when using the component with explicit `DataBinging`, where the `handler`-lambda would be used to intercept the update call.
@Lysander Lysander added bug Something isn't working headless All about headless components and foundations labels Jan 31, 2025
@Lysander Lysander added this to the 1.0-RC20 milestone Jan 31, 2025
@Lysander Lysander requested a review from haukesomm January 31, 2025 11:54
@Lysander Lysander self-assigned this Jan 31, 2025
@Lysander Lysander merged commit b20fd4d into master Jan 31, 2025
2 checks passed
@Lysander Lysander deleted the lysander/repair-headless-switch branch January 31, 2025 12:42
Lysander added a commit that referenced this pull request Jan 31, 2025
The `click`-event is now correctly handled by stop propagating it and `preventDefault` as the headless component will do all the work.

This could have led to bugs when using the component with explicit `DataBinging`, where the `handler`-lambda would be used to intercept the update call.

Co-authored-by: christian.hausknecht <christian.hausknecht@oeffentliche.de>
(cherry picked from commit b20fd4d)
Lysander added a commit that referenced this pull request Feb 4, 2025
Lysander added a commit that referenced this pull request Feb 4, 2025
Lysander pushed a commit that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working headless All about headless components and foundations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants