-
-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Included you will find a zip file containing my example project as well as a video. Please watch the video as I will reference what is going on below.
When the tree control is paired with Syncfusion's ContextMenuComponent, react seems to remove some essential html elements that the ContextMenuComponent requires. As soon as I remove the tree control from the test, everything works as expected.
When the video starts, I expect the context menu to show whenever the vertical dots in the tree control are clicked OR the OPEN div is clicked.
29 sec: I make a change to a comment so I can quick save/hot reload, showing console errors to help pinpoint what may be going on. Even though some of the errors point to the ContextMenuComponent, I believe the root cause is that the tree control is removing some of the elements it needs to operate.
57 sec: I comment out the tree control and show that the context menu shows when the OPEN div is clicked as it should.
1:30 sec: I show an essential DOM element created and utilized by the context menu control 'e-contextmenu-wrapper'. When that control is present, there usually isn't an issue.
1:55 sec: When the tree view control is brought back in AND the page is refreshed, the 'e-contextmenu-wrapper' is no longer preset, meaning the context menu will no longer work.
[complex-tree-issue.zip]
(https://github.com/lukasbach/react-complex-tree/files/9316674/complex-tree-issue.zip)