Skip to content

Commit 3dee3d6

Browse files
committed
fix: prevent links and buttons to move to another webpage when edit mode is enabled
1 parent 5734768 commit 3dee3d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ function RemoteFunctions(config) {
13501350
event.target.tagName !== "BODY" &&
13511351
event.target.tagName !== "HTML"
13521352
) {
1353+
event.preventDefault();
13531354
event.stopPropagation();
13541355
if (_nodeMoreOptionsBox) {
13551356
_nodeMoreOptionsBox.remove();

0 commit comments

Comments
 (0)