Skip to content

Commit 374a7b8

Browse files
author
Hwashiang Yu
committed
MC-877: Could not save button text without focusing out of live edit
- Added debounce method return type
1 parent a44e36c commit 374a7b8

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/binding

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/binding/live-edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ko.bindingHandlers.liveEdit = {
105105
_.debounce(() => {
106106
const selection = window.getSelection();
107107
const range = document.createRange();
108-
const getCharPosition = (editableDiv: HTMLElement) => {
108+
const getCharPosition = (editableDiv: HTMLElement): number => {
109109
let charPosition = 0;
110110

111111
if (window.getSelection) {

0 commit comments

Comments
 (0)