Skip to content

Commit cd110ee

Browse files
committed
MC-3903: Clicking into live edit shouldn't focus all text if existing text is present
- enable selectAll text for Button Item
1 parent 4573001 commit cd110ee

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/button-item/default

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/button-item/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
<render args="getOptions().template" />
1010
<a attr="data.link.attributes" ko-style="data.link.style" css="data.link.css">
1111
<span class="button-item-drag-handle" css="{disabled: parent.parent.children().length <= 1}"></span>
12-
<span attr="data.link_text.attributes" data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }, hasFocus: $parent.parent.preview.isLiveEditing() === $index()" event="{ focusout: onFocusOut.call($data) }"></span>
12+
<span attr="data.link_text.attributes" data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }, hasFocus: $parent.parent.preview.isLiveEditing() === $index()" event="{ focusout: onFocusOut.call($data) }"></span>
1313
</a>
1414
</div>

0 commit comments

Comments
 (0)