@webitel/ui-sdk 24.6.32 → 24.6.34
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
|
@@ -149,9 +149,9 @@ function handleKeyup(event) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
function updateSearchMode(
|
|
153
|
-
emit('update:search-mode',
|
|
154
|
-
emit('change:search-mode',
|
|
152
|
+
function updateSearchMode({ option }) {
|
|
153
|
+
emit('update:search-mode', option);
|
|
154
|
+
emit('change:search-mode', option);
|
|
155
155
|
}
|
|
156
156
|
</script>
|
|
157
157
|
|
|
@@ -57,7 +57,7 @@ async function changeMode({ value }) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function restoreSearchMode() {
|
|
60
|
-
const mode = props.searchModeOpts.
|
|
60
|
+
const mode = props.searchModeOpts.find(({ value }) => !!getValue(value));
|
|
61
61
|
if (mode) changeMode({ value: mode.value });
|
|
62
62
|
}
|
|
63
63
|
|