Skip to content

Commit 610aff9

Browse files
committed
fix: tests failing as boxes not getting dismissed on click on body or html tag
1 parent 9616db5 commit 610aff9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3929,7 +3929,10 @@ function RemoteFunctions(config = {}) {
39293929
* @param {Event} event - The click event
39303930
*/
39313931
function handleElementClick(element, event) {
3932-
if (!isElementInspectable(element)) { return; }
3932+
if (!isElementInspectable(element)) {
3933+
dismissUIAndCleanupState();
3934+
return;
3935+
}
39333936

39343937
// if anything is currently selected, we need to clear that
39353938
const selection = window.getSelection();

0 commit comments

Comments
 (0)