v0.10.3 - fix focus bug after remove all

This commit is contained in:
defaultkavy 2024-10-18 17:04:51 +08:00
parent 9f0add5b1c
commit 1ea53cfafd
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -16,7 +16,7 @@
gtag('config', 'G-59HBGP98WR');
</script>
<script type="module" crossorigin src="/assets/index-CluJD7uC.js"></script>
<script type="module" crossorigin src="/assets/index-CQM-nw_y.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BgVVzy-z.css">
</head>
<body>

View File

@ -2,7 +2,7 @@
"name": "danbooru-viewer",
"module": "index.ts",
"type": "module",
"version": "0.10.2",
"version": "0.10.3",
"scripts": {
"dev": "bun x vite",
"build": "bun x vite build",

View File

@ -91,7 +91,7 @@ export class $PostGrid extends $Layout<$PostGridEventMap> {
this.$posts.set(post, $post);
this.posts.add(post);
}
this.$focus.layer(100).removeAll();
this.$focus.layer(100).elementSet.clear();
const $posts = [...this.orderMap.values()].map(post => this.$posts.get(post)?.self(this.$focus.layer(100).add));
this.content($posts).render();
return this;