Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

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.

@atlassian-cla-bot
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant