@pageboard/html 0.14.24 → 0.14.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.14.24",
3
+ "version": "0.14.25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -25,12 +25,6 @@ class HTMLElementFieldsetList extends Page.Element {
25
25
  this.#resize();
26
26
  return vars;
27
27
  }
28
- patch(state) {
29
- // initialize
30
- if (this.ownView.children.length == 0) {
31
- this.#resize();
32
- }
33
- }
34
28
 
35
29
  reset() {
36
30
  this.#list = this.#defaultList?.slice();
@@ -89,6 +83,9 @@ class HTMLElementFieldsetList extends Page.Element {
89
83
  for (const node of tpl.content.querySelectorAll('[block-id]')) {
90
84
  node.removeAttribute('block-id');
91
85
  }
86
+ if (this.ownView.children.length == 0) {
87
+ this.#resize();
88
+ }
92
89
  }
93
90
  }
94
91