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

Commit 86b1365

Browse files
committed
Allow drag for plaintext-only contenteditable elements
1 parent 013bfce commit 86b1365

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/view/use-sensor-marshal/is-event-in-interactive-element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ function isAnInteractiveElement(parent: Element, current: ?Element) {
3535
return true;
3636
}
3737

38-
// contenteditable="true" or contenteditable="" are valid ways
38+
// contenteditable="true", contenteditable="" and contenteditable="plaintext-only" are valid ways
3939
// of creating a contenteditable container
4040
// https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
4141
const attribute: ?string = current.getAttribute('contenteditable');
42-
if (attribute === 'true' || attribute === '') {
42+
if (attribute === 'true' || attribute === '' || attribute === "plaintext-only") {
4343
return true;
4444
}
4545

0 commit comments

Comments
 (0)