ngx-render-material-forms 1.5.2 → 1.5.4
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/esm2020/lib/components/currency/currency.component.mjs +10 -3
- package/esm2020/lib/components/select/select.component.mjs +2 -2
- package/fesm2015/ngx-render-material-forms.js +10 -3
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +10 -3
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -663,8 +663,15 @@ class MaterialCurrencyComponent extends MaterialNumberComponent {
|
|
|
663
663
|
this.inputType = 'text';
|
|
664
664
|
}
|
|
665
665
|
onChange() {
|
|
666
|
-
|
|
667
|
-
this.
|
|
666
|
+
let newValue;
|
|
667
|
+
newValue = _.isNil(this.getValue()) ? '' : this.getValue();
|
|
668
|
+
if (!(Number.isNaN(newValue))) {
|
|
669
|
+
this.instance.updateValue(newValue, { modified: true });
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
newValue = '';
|
|
673
|
+
this.instance.updateValue(newValue, { modified: true });
|
|
674
|
+
}
|
|
668
675
|
}
|
|
669
676
|
}
|
|
670
677
|
MaterialCurrencyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialCurrencyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2776,7 +2783,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2776
2783
|
this.removePanelScrollEvent();
|
|
2777
2784
|
this.searching = false;
|
|
2778
2785
|
let selectedValue = this.getValue();
|
|
2779
|
-
if (
|
|
2786
|
+
if (selectedValue?.toString().length == '' || this.searchQuery == '' || this.productList?.length === 0) {
|
|
2780
2787
|
this.productList = [];
|
|
2781
2788
|
this.pageNumber = 1;
|
|
2782
2789
|
this.pageSize = 20;
|