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

refactor: ensure disabled buttons suppress interaction events #8541

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Jan 20, 2025

Description

The PR ensures that interaction events like click, mousedown, etc. are suppressed on disabled buttons even when pointer-events is set to auto.

This change revealed an issue with a CRUD test. When running this test with the Lit version in WebKit or Safari, the save button remains disabled for some reason after the click event. Previously, it was passing by mistake. I've decided to temporarily skip this test, as the cause remained unclear even after several hours of debugging:

saveButton.toggleAttribute('disabled', this.__isSaveBtnDisabled(isDirty));

Part of #4585

Type of change

  • Bugfix

@vursen vursen force-pushed the suppress-interaction-events-when-disabled branch from 141ddfc to 597d3f1 Compare January 20, 2025 16:41
@vursen vursen requested a review from tomivirkki January 20, 2025 16:50
@vursen vursen changed the title fix: suppress interaction events when disabled refactor: suppress interaction events when disabled Jan 20, 2025
@vursen vursen changed the title refactor: suppress interaction events when disabled refactor: ensure interaction events are suppressed when disabled Jan 20, 2025
@vursen vursen changed the title refactor: ensure interaction events are suppressed when disabled refactor: ensure interaction events are suppressed on disabled buttons Jan 20, 2025
@vursen vursen changed the title refactor: ensure interaction events are suppressed on disabled buttons refactor: ensure disabled buttons suppress interaction events Jan 20, 2025
@vursen vursen merged commit c590b82 into main Jan 21, 2025
9 checks passed
@vursen vursen deleted the suppress-interaction-events-when-disabled branch January 21, 2025 06:53
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.7.0.alpha6 and is also targeting the upcoming stable 24.7.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants