Product Version: @syncfusion/ej2-react-documenteditor v29.1.37
Framework: React 18.0.0
I'm experiencing a positioning and interaction issue with the Paste Options menu in the DocumentEditorContainerComponent when it's rendered inside a modal dialog (RSuite Modal).
Steps to Reproduce:
Open a DocumentEditorContainerComponent inside a modal dialog
Copy content from Microsoft Word
Paste the content into the editor
The "Paste Options" menu appears correctly with options like "Match Destination Formatting"
Select any option (like, "Match Destination Formatting")
Scroll up or down within the modal body
Click on the pasted content area again to trigger the paste options menu
Expected Behavior:
The Paste Options menu should reappear at the correct position relative to the pasted content (Even if I Scroll Up and Down after Pasting)
Actual Behavior:
Watch the Attached Video for Better Reference :
https://drive.google.com/file/d/1BwI1oBIJBVDn2is_DnDEpwI5LYg4ZfIw/view?usp=sharing
Configuration:
<DocumentEditorContainerComponent
ref={containerRef}
id={key}
height="800px"
serviceUrl={some url}
enableToolbar
toolbarItems={items}
/>
Environment:
Modal container: RSuite Modal with overflow: auto on Modal.Body
DocumentEditor height: 800px
The modal uses position: relative for the body
Question:
Is this a known issue with the Paste Options menu positioning in scrollable containers? Are there any configuration options or workarounds to maintain proper positioning of the paste menu after scroll events?
I've attempted to fix this with CSS (position: fixed, high z-index) but the core issue of scroll jumping and menu repositioning persists.