react-beautiful-dnd icon indicating copy to clipboard operation
react-beautiful-dnd copied to clipboard

Allow drag for elements with `contenteditable="plaintext-only"`

Open smbkr opened this issue 1 year ago • 1 comments

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.

smbkr avatar Jan 15 '24 14:01 smbkr

Hooray! All contributors have signed the CLA.

atlassian-cla-bot[bot] avatar Jan 15 '24 14:01 atlassian-cla-bot[bot]