Skip to content

Commit 9ef308b

Browse files
committed
MC-3775: Button editable state is not consistent with the options panel appearing
- Elaborate on decision behind focus out logic
1 parent 0d5c0d9 commit 9ef308b

File tree

2 files changed

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

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export default class Preview extends BasePreview {
4646
}
4747

4848
/**
49-
* On focus out
49+
* Handle on focus out events, when the button item is focused out we need to set our focusedButton record on the
50+
* buttons preview item to null. If we detect this focus out event is to focus into another button we need to ensure
51+
* we update the record appropriately.
5052
*
5153
* @param {number} index
5254
* @param {Event} event

0 commit comments

Comments
 (0)