Commit ec083e9
committed
Fix outside press dismissal of hotspot tooltips
floating-ui appears to use native event handlers for detecting
mousedown on the document, but React event callbacks for intercepting
mousedown inside the floating element in the capture phase. Looks like
capture phase for React events happens after native events in React
16. React 17 changes the event system here.
This causes the first click on a link tooltip of the hotspot tooltip
link button to close the tooltip before the link can be clicked in the
editor. In the published editor it disables outside press dismissal
once after a click inside the floating element.
Disable capture for outside press to work around these issue.1 parent 93c89cc commit ec083e9
File tree
1 file changed
+4
-1
lines changed- entry_types/scrolled/package/src/contentElements/hotspots
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
0 commit comments