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

fix(Quote): prevent button click event from propagation #12824

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Antreesy
Copy link
Contributor

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
image See URL hash is unchanged

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • ⛑️ Tests are included or not possible

@Antreesy Antreesy added this to the 💙 Next Beta (30) milestone Jul 26, 2024
@Antreesy Antreesy requested a review from ShGKme July 26, 2024 16:04
@Antreesy Antreesy self-assigned this Jul 26, 2024
@Antreesy
Copy link
Contributor Author

/backport to stable29

Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should fix the problem, but having an interactive element (button) inside another interactive element is invalid and an a11y issue.

@Antreesy
Copy link
Contributor Author

is invalid and an a11y issue.

we have that only in one place, and Quote is used there only as a visual element, so, could be altered with <component :is

@Antreesy Antreesy force-pushed the fix/noid/quote-abort-stop-propagation branch from 631980e to 605ba82 Compare July 27, 2024 15:48
@Antreesy Antreesy requested a review from ShGKme July 27, 2024 15:48
src/components/Quote.vue Outdated Show resolved Hide resolved
src/components/Quote.vue Outdated Show resolved Hide resolved
- button was wrapped in a <a> link, which was an a11y issue and false positive trigger when cancelling the reply
- for 'reply to message' variant wrap component in a simple div

Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the fix/noid/quote-abort-stop-propagation branch from 605ba82 to 5a3d732 Compare July 29, 2024 10:10
@Antreesy Antreesy merged commit 534fb29 into main Jul 29, 2024
46 checks passed
@Antreesy Antreesy deleted the fix/noid/quote-abort-stop-propagation branch July 29, 2024 10:15
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.

2 participants