@lvce-editor/virtual-dom 1.38.1 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -626,6 +626,8 @@ const getEventListenerArg = (param, event) => {
|
|
|
626
626
|
return event.inputType;
|
|
627
627
|
case 'event.defaultPrevented':
|
|
628
628
|
return event.defaultPrevented;
|
|
629
|
+
case 'event.target.dataset.name':
|
|
630
|
+
return event.target.dataset.name;
|
|
629
631
|
default:
|
|
630
632
|
return param;
|
|
631
633
|
}
|
|
@@ -750,7 +752,7 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
|
|
|
750
752
|
$Previous.className = $NewFocused.className;
|
|
751
753
|
$Previous.placeholder = $NewFocused.placeholder;
|
|
752
754
|
if ($NewFocused.childNodes) {
|
|
753
|
-
$Previous.
|
|
755
|
+
$Previous.replaceChildren(...$NewFocused.childNodes);
|
|
754
756
|
}
|
|
755
757
|
$NewFocused.replaceWith($Previous);
|
|
756
758
|
}
|
package/package.json
CHANGED
|
@@ -57,6 +57,8 @@ export const getEventListenerArg = (param: string, event: any): any => {
|
|
|
57
57
|
return event.inputType
|
|
58
58
|
case 'event.defaultPrevented':
|
|
59
59
|
return event.defaultPrevented
|
|
60
|
+
case 'event.target.dataset.name':
|
|
61
|
+
return event.target.dataset.name
|
|
60
62
|
default:
|
|
61
63
|
return param
|
|
62
64
|
}
|
|
@@ -53,7 +53,7 @@ export const rememberFocus = (
|
|
|
53
53
|
$Previous.className = $NewFocused.className
|
|
54
54
|
$Previous.placeholder = $NewFocused.placeholder
|
|
55
55
|
if ($NewFocused.childNodes) {
|
|
56
|
-
$Previous.
|
|
56
|
+
$Previous.replaceChildren(...$NewFocused.childNodes)
|
|
57
57
|
}
|
|
58
58
|
$NewFocused.replaceWith($Previous)
|
|
59
59
|
}
|