@lvce-editor/renderer-process 30.25.0 → 30.25.2
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.
|
@@ -378,6 +378,7 @@ const unwrapItemFile = async item => {
|
|
|
378
378
|
// @ts-ignore
|
|
379
379
|
const file = await item.getAsFileSystemHandle();
|
|
380
380
|
return {
|
|
381
|
+
file: item.getAsFile(),
|
|
381
382
|
kind: 'file',
|
|
382
383
|
type: item.type,
|
|
383
384
|
value: file
|
|
@@ -8949,7 +8950,7 @@ const focusSelector = (viewletId, selector) => {
|
|
|
8949
8950
|
const {
|
|
8950
8951
|
$Viewlet
|
|
8951
8952
|
} = instance.state;
|
|
8952
|
-
const $Element = $Viewlet.querySelector(selector);
|
|
8953
|
+
const $Element = $Viewlet.matches(selector) ? $Viewlet : $Viewlet.querySelector(selector);
|
|
8953
8954
|
if (!$Element) {
|
|
8954
8955
|
return;
|
|
8955
8956
|
}
|