@signal24/vue-foundation 4.25.4 → 4.25.5
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/package.json
CHANGED
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
import { debounce, groupBy, isEqual, uniq } from 'lodash';
|
|
54
54
|
import { computed, onMounted, ref, watch } from 'vue';
|
|
55
55
|
|
|
56
|
+
import { isNotNullOrUndefined } from '@/helpers';
|
|
57
|
+
|
|
56
58
|
import { escapeHtml } from '../helpers/string';
|
|
57
59
|
import type { VfSmartSelectOptionDescriptor } from './vf-smart-select.types';
|
|
58
60
|
|
|
@@ -321,7 +323,7 @@ onMounted(async () => {
|
|
|
321
323
|
if (selectedOption.value !== props.modelValue) {
|
|
322
324
|
emit(
|
|
323
325
|
'update:modelValue',
|
|
324
|
-
selectedOption.value
|
|
326
|
+
isNotNullOrUndefined(selectedOption.value) && effectiveValueExtractor.value !== null
|
|
325
327
|
? effectiveValueExtractor.value(selectedOption.value)
|
|
326
328
|
: selectedOption.value
|
|
327
329
|
);
|
|
@@ -559,7 +561,7 @@ function handleValueChanged() {
|
|
|
559
561
|
selectedOption.value = effectiveValueExtractor.value
|
|
560
562
|
? allOptions.value.find(o => props.modelValue === effectiveValueExtractor.value!(o))
|
|
561
563
|
: props.modelValue;
|
|
562
|
-
selectedOptionTitle.value = selectedOption.value
|
|
564
|
+
selectedOptionTitle.value = isNotNullOrUndefined(selectedOption.value) ? effectiveSelectionFormatter.value(selectedOption.value) : null;
|
|
563
565
|
searchText.value = selectedOptionTitle.value ?? '';
|
|
564
566
|
} else {
|
|
565
567
|
selectedOption.value = null;
|
package/src/helpers/object.ts
CHANGED