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

Allow drag for elements with contenteditable="plaintext-only" #2562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

smbkr
Copy link

@smbkr smbkr commented Jan 15, 2024

This PR extends the isAnInteractiveElement function to include elements with contenteditable="plaintext-only" which is defined in the spec and supported by all browsers except Firefox (where support is planned).

It simply adds another condition to the existing check.

I've not added an additional test, as the existing tests in test/unit/integration/drag-handle/shared-behaviours/contenteditable.spec.js only check elements defined as <div contenteditable /> and not <div contenteditable="true" />, so I wasn't sure if the project aims to cover each and every variant. If additional tests are desired please let me know.

Copy link

atlassian-cla-bot bot commented Jan 15, 2024

Hooray! All contributors have signed the CLA.

@smbkr smbkr force-pushed the contenteditable-plaintext-only branch from 24ed62d to fa3d70b Compare January 15, 2024 14:13
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.

1 participant