@lvce-editor/virtual-dom 1.23.0 → 1.24.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
@@ -678,7 +678,7 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
678
678
  }
679
679
  $Viewlet.replaceWith($New);
680
680
  if (focused) {
681
- const $NewFocused = $Viewlet.querySelector(`[name="${focused}"]`);
681
+ const $NewFocused = $New.querySelector(`[name="${focused}"]`);
682
682
  if ($NewFocused) {
683
683
  $NewFocused.replaceWith($Hidden.firstChild);
684
684
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -43,7 +43,7 @@ export const rememberFocus = (
43
43
  }
44
44
  $Viewlet.replaceWith($New)
45
45
  if (focused) {
46
- const $NewFocused = $Viewlet.querySelector(`[name="${focused}"]`)
46
+ const $NewFocused = $New.querySelector(`[name="${focused}"]`)
47
47
  if ($NewFocused) {
48
48
  $NewFocused.replaceWith($Hidden.firstChild as HTMLElement)
49
49
  }