v0.10.3 - fix focus bug after remove all
This commit is contained in:
parent
9f0add5b1c
commit
1ea53cfafd
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -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>
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user