ps-toolkit-ui 1.10.23 → 1.10.24

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.
@@ -4348,9 +4348,10 @@
4348
4348
  var lastInp = this.form.inputs.map(function (x) { return x.type !== exports.InputType.Submit && x.type !== exports.InputType.Button &&
4349
4349
  x.type !== exports.InputType.Label && x.type !== exports.InputType.Hidden && !x.disabled && x.visible; }).lastIndexOf(true);
4350
4350
  if (index === lastInp && action === 'Enter') {
4351
- var submit = this.form.inputs.findIndex(function (x) { return x.type === exports.InputType.Submit; });
4352
- if (submit !== -1) {
4353
- this.form.submit();
4351
+ var submit = this.form.inputs.find(function (x) { return x.type === exports.InputType.Submit; });
4352
+ if (submit) {
4353
+ submit.onClick(submit);
4354
+ // this.form.submit();
4354
4355
  return;
4355
4356
  }
4356
4357
  }