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(components): [collapse] replace keypress with keydown #14137

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

btea
Copy link
Collaborator

@btea btea commented Aug 28, 2023

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

Description

keypress has been deprecated.
https://developer.mozilla.org/en-US/docs/Web/API/Element/keypress_event

🤖 Generated by Copilot at 71737a9

Replaced @keypress with @keydown in collapse-item.vue to fix accessibility issue. This change makes the component more compatible with screen readers and modern browsers.

Related Issue

Fixes #___.

Explanation of Changes

🤖 Generated by Copilot at 71737a9

@github-actions
Copy link

github-actions bot commented Aug 28, 2023

@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label Aug 28, 2023
@github-actions
Copy link

🧪 Playground Preview: https://element-plus.run/?pr=14137
Please comment the example via this playground if needed.

@tolking tolking merged commit ee8f157 into dev Aug 29, 2023
13 checks passed
@tolking tolking deleted the refactor/replace-keypress branch August 29, 2023 14:16
@element-bot element-bot mentioned this pull request Sep 14, 2023
3 tasks
consultation-applio pushed a commit to consultation-applio/element-plus that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CommitMessage::Qualified Qualified commit message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants