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