Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Fixes a small potential bug on headless switch component#933

Merged
Lysander merged 1 commit intomasterfrom
lysander/repair-headless-switch
Jan 31, 2025
Merged

Fixes a small potential bug on headless switch component#933
Lysander merged 1 commit intomasterfrom
lysander/repair-headless-switch

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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