@lvce-editor/virtual-dom 1.23.0 → 1.25.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
|
@@ -397,6 +397,10 @@ const setProp = ($Element, key, value, eventMap, newEventMap) => {
|
|
|
397
397
|
case 'onClick':
|
|
398
398
|
case 'onContextMenu':
|
|
399
399
|
case 'onDblClick':
|
|
400
|
+
case 'onDragEnd':
|
|
401
|
+
case 'onDragOver':
|
|
402
|
+
case 'onDragStart':
|
|
403
|
+
case 'onDrop':
|
|
400
404
|
case 'onFocus':
|
|
401
405
|
case 'onFocusIn':
|
|
402
406
|
case 'onFocusOut':
|
|
@@ -678,7 +682,7 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
|
|
|
678
682
|
}
|
|
679
683
|
$Viewlet.replaceWith($New);
|
|
680
684
|
if (focused) {
|
|
681
|
-
const $NewFocused = $
|
|
685
|
+
const $NewFocused = $New.querySelector(`[name="${focused}"]`);
|
|
682
686
|
if ($NewFocused) {
|
|
683
687
|
$NewFocused.replaceWith($Hidden.firstChild);
|
|
684
688
|
}
|
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ export const rememberFocus = (
|
|
|
43
43
|
}
|
|
44
44
|
$Viewlet.replaceWith($New)
|
|
45
45
|
if (focused) {
|
|
46
|
-
const $NewFocused = $
|
|
46
|
+
const $NewFocused = $New.querySelector(`[name="${focused}"]`)
|
|
47
47
|
if ($NewFocused) {
|
|
48
48
|
$NewFocused.replaceWith($Hidden.firstChild as HTMLElement)
|
|
49
49
|
}
|