@optionfactory/ful 6.0.2 → 6.0.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.
package/dist/ful.mjs CHANGED
@@ -1219,10 +1219,8 @@ class Bindings {
1219
1219
  static extractFrom(form, submitter){
1220
1220
  let result = {};
1221
1221
  for(const el of form.elements){
1222
- if(!el.hasAttribute("name") || el.matches(":disabled")){
1223
- continue;
1224
- }
1225
- if(submitter && (el.type==='submit' || el.type === 'reset') && el !== submitter){
1222
+ // we are assuming submitters are disabled during submit.
1223
+ if(!el.hasAttribute("name") || (el.matches(":disabled") && el !== submitter)){
1226
1224
  continue;
1227
1225
  }
1228
1226
  result = Bindings.providePath(result, /** @type {string} */(el.getAttribute('name')), Bindings.extract(el));