You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Jodit editor inside a React modal or dialog component, the editor's dropdown options are not scrolling properly. This issue prevents users from accessing all dropdown options when there are more options than can fit within the visible area of the modal.
Expected Behavior:
The dropdown options in the Jodit editor should be scrollable within the modal or dialog component.
Actual Behavior:
The dropdown options are not scrollable, making it impossible to access all options when there are too many to fit in the visible area.
The text was updated successfully, but these errors were encountered:
After investigation it seems that the structure of the body when Jodit is used in the modal is:
<div id="main">
<div class="modal"> : there is the Jodit instance inside
<div class="jodit-box"> : it needs it many times: dropdowns, popover, etc
The modal has priority over all, and clicking on a jodit-box is considered as clicking outside the modal and closing it
And the modal I use (shadcn with radix) adds on the body the css pointer-events: none; and this causes the bug because it prevents clicking above the modal
One solution is to put all the <div class="jodit-box"> not at the bottom of the body element but elsewhere, in the jodit-react-container (or root ?) element for example to have the dropdown in the modal.
Issue
Jodit Version: 4.xxxxx
Browser:
OS:
Is React App: True
Reproduced on xdsoft.net: False
Description:
When using Jodit editor inside a React modal or dialog component, the editor's dropdown options are not scrolling properly. This issue prevents users from accessing all dropdown options when there are more options than can fit within the visible area of the modal.
Expected Behavior:
The dropdown options in the Jodit editor should be scrollable within the modal or dialog component.
Actual Behavior:
The dropdown options are not scrollable, making it impossible to access all options when there are too many to fit in the visible area.
The text was updated successfully, but these errors were encountered: