@pageboard/html 0.17.2 → 0.17.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui/form.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
package/ui/form.js CHANGED
@@ -82,8 +82,14 @@ class HTMLElementForm extends Page.create(HTMLFormElement) {
82
82
  if (this.hidden) toggles.push(submit);
83
83
  state.vars.submit = true;
84
84
  }
85
+ // these are merged after the fact, so merge now to collect state.vars
86
+ for (const n of [200, 400, 401, 403, 404, 500]) {
87
+ const attr = this.getRedirect(n);
88
+ if (attr) Page.parse(attr).fuse({}, state.scope);
89
+ }
90
+
85
91
  const actionLoc = Page.parse(this.getAttribute('action'));
86
- Object.assign(actionLoc.query, state.templatesQuery(this));
92
+ Object.assign(actionLoc.query, state.templatesQuery(this.getAttribute('parameters')));
87
93
  this.setAttribute('action', Page.format(actionLoc));
88
94
  this.restore(state.scope);
89
95
  } else {