osl-base-extended 3.0.3 → 3.0.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.
|
@@ -1736,7 +1736,7 @@ class OslAutocomplete extends baseComponent {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
syncInputFromModel() {
|
|
1738
1738
|
if (this._model !== null && this._model !== undefined) {
|
|
1739
|
-
const found = this.datasource
|
|
1739
|
+
const found = this.datasource?.find((item) => this.getValue(item) === this._model);
|
|
1740
1740
|
if (found) {
|
|
1741
1741
|
const display = this.getDisplay(found);
|
|
1742
1742
|
this.inputValue = display;
|