Skip to content

Switch - click custom switch icon fix #1523

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

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

bartbutenaers
Copy link
Contributor

Description

Seems a breaking change has been introduced by my recent pull request [https://github.com//pull/1511] to allow clickable area "None" for ui-switches.

The user says that the icon is not clickable anymore, but in fact what happens is that the click event is propagated up into the dom tree. Since the parent div element has - since PR 1511 - also a click handler, the toggle will be called a second time:

image

Since the toggle function is called twice, it looks like the custom icon is not clickable anymore.

Related Issue(s)

1522

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@joepavitt joepavitt merged commit e12dcbf into FlowFuse:main Dec 10, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants