Skip to content

Conversation

@o1y
Copy link
Contributor

@o1y o1y commented Feb 8, 2026

Fixes #13852

ProseMirror automatically sets contenteditable="false" on the node view wrappers that don't have a contentDOM, which nicludes Bard Sets. In Firefox this prevents nested contenteditable="true" elements from receiving focus on click.

This work around pre-sets contenteditable="true" on the <node-view-wrapper>. This seems to cause Firefox to inconsistently handle the drag handle, sometimes handling the drag and sometimes showing a text cursor next to the drag handle instead. The handleDrag method works around this by temporarily toggling contenteditable to false during drag operations.

Would be good to properly test this fix though :)

@o1y o1y changed the title Fix nested Bard field focus in Firefox [6.x] Fix nested Bard field focus in Firefox Feb 8, 2026
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.

Cursor and text selection not working in nested Bard fields in Firefox

1 participant