ng-inail-common 1.0.402 → 1.0.411

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.
@@ -2230,7 +2230,7 @@
2230
2230
  * @return {?}
2231
2231
  */
2232
2232
  function (changes) {
2233
- if (changes.value && !changes.value.firstChange) {
2233
+ if (changes.value && !changes.value.firstChange && this.cleanErrorOnChange) {
2234
2234
  this.hasError = false;
2235
2235
  this.descError = undefined;
2236
2236
  }
@@ -2419,10 +2419,13 @@
2419
2419
  this.valueValue = val;
2420
2420
  this.valueChange.emit(this.valueValue);
2421
2421
  /** @type {?} */
2422
- var optionSelected = this.options.find(( /**
2423
- * @param {?} opt
2424
- * @return {?}
2425
- */function (opt) { return opt != undefined && opt.value === _this.valueValue; }));
2422
+ var optionSelected;
2423
+ if (this.options != undefined) {
2424
+ optionSelected = this.options.find(( /**
2425
+ * @param {?} opt
2426
+ * @return {?}
2427
+ */function (opt) { return opt != undefined && opt.value === _this.valueValue; }));
2428
+ }
2426
2429
  if (optionSelected != undefined || isEmptyOrNull(val)) {
2427
2430
  this.select.emit(optionSelected);
2428
2431
  }
@@ -8976,6 +8979,7 @@
8976
8979
  function () {
8977
8980
  this.fileModel = undefined;
8978
8981
  this.uploadFile.emit(undefined);
8982
+ this.inputTypeFile.nativeElement.value = '';
8979
8983
  };
8980
8984
  InailFileUploadComponent.decorators = [
8981
8985
  { type: i0.Component, args: [{
@@ -8988,6 +8992,7 @@
8988
8992
  /** @nocollapse */
8989
8993
  InailFileUploadComponent.ctorParameters = function () { return []; };
8990
8994
  InailFileUploadComponent.propDecorators = {
8995
+ inputTypeFile: [{ type: i0.ViewChild, args: ["inputTypeFile",] }],
8991
8996
  placeholder: [{ type: i0.Input }],
8992
8997
  description: [{ type: i0.Input }],
8993
8998
  chooseButtonText: [{ type: i0.Input }],