Skip to content

Commit 282bee0

Browse files
committed
fix: element backgroud color not getting properly cleared
1 parent dc3d2f2 commit 282bee0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,10 +3545,11 @@ function RemoteFunctions(config = {}) {
35453545
body.removeChild(highlights[i]);
35463546
}
35473547

3548-
if (this.trigger) {
3549-
for (i = 0; i < this.elements.length; i++) {
3548+
for (i = 0; i < this.elements.length; i++) {
3549+
if (this.trigger) {
35503550
_trigger(this.elements[i], "highlight", 0);
35513551
}
3552+
clearElementBackground(this.elements[i]);
35523553
}
35533554

35543555
this.elements = [];

0 commit comments

Comments
 (0)