Skip to content

Commit 0baaca1

Browse files
author
Hwashiang Yu
committed
MC-3709: Safari and firefox button grab handles display on multiple button items
- Removed logic to find bubbled up event target
1 parent c9cfe58 commit 0baaca1

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+2
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/button-item/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/button-item/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class Preview extends BasePreview {
5454
// Ensure no other options panel and button drag handles are displayed
5555
$(".pagebuilder-content-type-active").removeClass("pagebuilder-content-type-active");
5656
$(".pagebuilder-options-visible").removeClass("pagebuilder-options-visible");
57-
const currentTarget = $(event.currentTarget).closest("[data-element='main']")[0];
57+
const currentTarget = $(event.currentTarget);
5858
let optionsMenu = $(currentTarget).find(".pagebuilder-options-wrapper");
5959

6060
if (!$(currentTarget).hasClass("type-nested")) {

0 commit comments

Comments
 (0)