We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a02487 commit e03591cCopy full SHA for e03591c
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -4506,7 +4506,13 @@ function RemoteFunctions(config = {}) {
4506
});
4507
4508
this.rememberedNodes = {};
4509
- redrawEverything();
+
4510
+ // this check makes sure that if the element is no more in the DOM then we remove it
4511
+ if (previouslyClickedElement && !previouslyClickedElement.isConnected) {
4512
+ dismissUIAndCleanupState();
4513
+ } else {
4514
+ redrawEverything();
4515
+ }
4516
};
4517
4518
function applyDOMEdits(edits) {
0 commit comments