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 63d558a commit cfa29f6Copy full SHA for cfa29f6
1 file changed
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -718,6 +718,14 @@ function RemoteFunctions(config = {}) {
718
}
719
720
function enableHoverListeners() {
721
+ // don't enable hover listeners if user is currently editing an element
722
+ // this was added to fix a specific bug:
723
+ // lets say user double clicked an element: so as soon as the first click is made,
724
+ // 'breiflyDisableHoverListeners' is called which has a timer to re-enable hover listeners,
725
+ // because of which even during editing the hover listeners were working
726
+ if (SHARED_STATE._currentlyEditingElement) {
727
+ return;
728
+ }
729
if (config.mode === 'edit' && shouldShowHighlightOnHover()) {
730
disableHoverListeners();
731
window.document.addEventListener("mouseover", onElementHover);
0 commit comments