@syncfusion/ej2-inputs 20.3.49 → 20.3.56

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.
@@ -1017,6 +1017,9 @@ let NumericTextBox = class NumericTextBox extends Component {
1017
1017
  if (this.element.hasAttribute('data-val')) {
1018
1018
  this.element.setAttribute('data-val', 'false');
1019
1019
  }
1020
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
1021
+ this.enabled = false;
1022
+ }
1020
1023
  this.renderComplete();
1021
1024
  }
1022
1025
  }
@@ -3500,6 +3503,9 @@ let MaskedTextBox = class MaskedTextBox extends Component {
3500
3503
  if (this.element.getAttribute('value') || this.value) {
3501
3504
  this.element.setAttribute('value', this.element.value);
3502
3505
  }
3506
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
3507
+ this.enabled = false;
3508
+ }
3503
3509
  this.renderComplete();
3504
3510
  }
3505
3511
  }
@@ -13127,6 +13133,9 @@ let TextBox = class TextBox extends Component {
13127
13133
  this.inputPreviousValue = this.value;
13128
13134
  this.respectiveElement.defaultValue = this.respectiveElement.value;
13129
13135
  Input.setWidth(this.width, this.textboxWrapper.container);
13136
+ if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
13137
+ this.enabled = false;
13138
+ }
13130
13139
  this.renderComplete();
13131
13140
  }
13132
13141
  updateHTMLAttrToWrapper() {
@@ -13318,6 +13327,12 @@ let TextBox = class TextBox extends Component {
13318
13327
  this.trigger('input', eventArgs);
13319
13328
  this.inputPreviousValue = this.respectiveElement.value;
13320
13329
  this.raiseChangeEvent(event, true);
13330
+ if (closest(this.element, 'form')) {
13331
+ let element = this.element;
13332
+ let keyupEvent = document.createEvent('KeyboardEvent');
13333
+ keyupEvent.initEvent('keyup', false, true);
13334
+ element.dispatchEvent(keyupEvent);
13335
+ }
13321
13336
  }
13322
13337
  }
13323
13338
  unWireEvents() {