Commit 6485284
committed
🐛(frontend) fix dnd conflict with tree and Blocknote
We have different DND system in the page, one on the
menu tree and one in the Blocknote editor.
The menu tree was adding a transparent layer
when user were dragging element on the Blocknote
editor, blocking the Blocknote DND.
We update the ui-kit to add the prop dndRootElement,
dndRootElement is now used to specify the root element
for DND, this transparent layer is now only applied
when a drag is made from the menu tree.
It stabilize as well the drop position, making it easier to drop element.1 parent 474e5ac commit 6485284
File tree
4 files changed
+37
-56
lines changed- src/frontend
- apps/impress
- src/features/docs/doc-tree/components
4 files changed
+37
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 28 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| |||
14712 | 14712 | | |
14713 | 14713 | | |
14714 | 14714 | | |
14715 | | - | |
14716 | | - | |
14717 | | - | |
14718 | | - | |
14719 | | - | |
14720 | | - | |
14721 | | - | |
14722 | | - | |
14723 | | - | |
14724 | | - | |
| 14715 | + | |
14725 | 14716 | | |
14726 | 14717 | | |
14727 | 14718 | | |
| |||
14847 | 14838 | | |
14848 | 14839 | | |
14849 | 14840 | | |
14850 | | - | |
14851 | | - | |
14852 | | - | |
14853 | | - | |
14854 | | - | |
14855 | | - | |
14856 | | - | |
14857 | | - | |
| 14841 | + | |
14858 | 14842 | | |
14859 | 14843 | | |
14860 | 14844 | | |
| |||
16389 | 16373 | | |
16390 | 16374 | | |
16391 | 16375 | | |
16392 | | - | |
16393 | | - | |
16394 | | - | |
16395 | | - | |
16396 | | - | |
16397 | | - | |
16398 | | - | |
16399 | | - | |
16400 | | - | |
16401 | | - | |
| 16376 | + | |
16402 | 16377 | | |
16403 | 16378 | | |
16404 | 16379 | | |
| |||
0 commit comments