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

Dropdown prevents default actions for contenteditable elements on Up/Down arrow keys #41021

Open
3 tasks done
artemkafomin opened this issue Nov 10, 2024 · 1 comment · May be fixed by #41157
Open
3 tasks done

Dropdown prevents default actions for contenteditable elements on Up/Down arrow keys #41021

artemkafomin opened this issue Nov 10, 2024 · 1 comment · May be fixed by #41157
Labels

Comments

@artemkafomin
Copy link

artemkafomin commented Nov 10, 2024

Prerequisites

Describe the issue

In the attached example, the prevention of default actions makes it impossible to navigate between lines using the up and down arrow keys.

I encountered this issue while working with CodeMirror. Because of this behavior, I was unable to move between lines of code.

I suggest expanding the condition on this line to stop processing if the event target is a contenteditable element:

if (isInput && !isEscapeEvent) {

Reduced test cases

https://codepen.io/artemkafomin/pen/wvVQZmR

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.3.3

@AmanVerma2202
Copy link

Can I try this.

@MohamadSalman11 MohamadSalman11 linked a pull request Jan 17, 2025 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@julien-deramond @artemkafomin @AmanVerma2202 and others