Skip to content

Commit 4515591

Browse files
devvaannshabose
authored andcommitted
fix: reapply outline as after style edit the attr change wipes it
1 parent 8257c24 commit 4515591

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,12 @@ function RemoteFunctions(config = {}) {
12661266
} else {
12671267
redrawEverything();
12681268
}
1269+
} else {
1270+
// Suppression is active - re-apply outline since attrChange may have wiped it
1271+
if (previouslySelectedElement && previouslySelectedElement.isConnected) {
1272+
const outlineColor = previouslySelectedElement.hasAttribute(GLOBALS.DATA_BRACKETS_ID_ATTR) ? "#4285F4" : "#3C3F41";
1273+
previouslySelectedElement.style.outline = `1px solid ${outlineColor}`;
1274+
}
12691275
}
12701276
};
12711277

0 commit comments

Comments
 (0)