Skip to content

Commit 8acbde4

Browse files
committed
fix: dom more options box background color changing when hovered
1 parent a7fb976 commit 8acbde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ function RemoteFunctions(config) {
837837
}
838838

839839
// Restore original background color
840-
if (event && event.target && event.target.nodeType === Node.ELEMENT_NODE) {
840+
if (event && event.target && event.target.nodeType === Node.ELEMENT_NODE && event.target.hasAttribute("data-brackets-id")) {
841841
if (event.target._originalBackgroundColor !== undefined) {
842842
event.target.style.backgroundColor = event.target._originalBackgroundColor;
843843
delete event.target._originalBackgroundColor;

0 commit comments

Comments
 (0)