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 686387b commit c885f81Copy full SHA for c885f81
1 file changed
src/view/frontend/web/js/inspector/picker.js
@@ -153,7 +153,7 @@ export const pickerMethods = {
153
// Handle click outside badge when pinned
154
if (this.isPinned && this.infoBadge) {
155
// Check if click is outside badge
156
- if (!this.infoBadge.contains(e.target) && !this.floatingButton.contains(e.target)) {
+ if (!this.infoBadge.contains(e.target) && (!this.floatingButton || !this.floatingButton.contains(e.target))) {
157
this.unpinBadge();
158
return;
159
}
0 commit comments