osl-base-extended 1.0.14 → 1.0.15

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.
@@ -1326,13 +1326,21 @@ class OslAutocomplete extends baseComponent {
1326
1326
  label = '';
1327
1327
  required = false;
1328
1328
  disabled = false;
1329
+ _model;
1330
+ _object;
1329
1331
  set model(val) {
1330
- if (val && this.object) {
1331
- this.datasource = [this.object];
1332
- this.filteredItems = [...this.datasource];
1333
- this.syncInputFromModel();
1332
+ if (val) {
1333
+ this._model = val;
1334
+ if (this.object) {
1335
+ this.datasource = [this.object];
1336
+ this.filteredItems = [...this.datasource];
1337
+ this.syncInputFromModel();
1338
+ }
1334
1339
  }
1335
1340
  }
1341
+ get model() {
1342
+ return this._model;
1343
+ }
1336
1344
  datasource = [];
1337
1345
  displayField = '';
1338
1346
  valueField = '';
@@ -1342,7 +1350,16 @@ class OslAutocomplete extends baseComponent {
1342
1350
  methodName = '';
1343
1351
  configMethodName = '';
1344
1352
  service;
1345
- object;
1353
+ set object(val) {
1354
+ if (val) {
1355
+ this._object = val;
1356
+ this.datasource = [this.object];
1357
+ this.filteredItems = [...this.datasource];
1358
+ }
1359
+ if (this.model) {
1360
+ this.syncInputFromModel();
1361
+ }
1362
+ }
1346
1363
  skeletonLoading = false;
1347
1364
  isLister = false;
1348
1365
  modelChange = new EventEmitter();