Skip to content

Commit 68b79aa

Browse files
committed
fix: add interaction blockers in allowed handler functions
1 parent ee0c1c5 commit 68b79aa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ function RemoteFunctions(config = {}) {
8989
"reRegisterEventHandlers",
9090
"handleClick", // handle click on an icon in the more options box.
9191
// when escape key is presses in the editor, we may need to dismiss the live edit boxes.
92-
"handleEscapePressFromEditor"
92+
"handleEscapePressFromEditor",
93+
// interaction blocks acts as 'kill switch' to block all kinds of click handlers
94+
// this is done so that links or buttons doesn't perform their natural operation in edit mode
95+
"registerInteractionBlocker", // to block
96+
"unregisterInteractionBlocker" // to unblock
9397
];
9498

9599
const _moreOptionsHandlers = new Map();

0 commit comments

Comments
 (0)