Skip to content

Commit de6ee39

Browse files
committed
fix: don't close popup after duplicate operation
1 parent 75a9574 commit de6ee39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,9 @@ function RemoteFunctions(config) {
12191219
// data-action is to differentiate between the buttons (duplicate, delete or select-parent)
12201220
const action = event.currentTarget.getAttribute('data-action');
12211221
handleOptionClick(event, action, this.element);
1222-
this.remove();
1222+
if (action !== 'duplicate') {
1223+
this.remove();
1224+
}
12231225
});
12241226
});
12251227

0 commit comments

Comments
 (0)