@webitel/ui-sdk 24.12.84 → 24.12.85

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.12.84",
3
+ "version": "24.12.85",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -42,7 +42,7 @@
42
42
  v-if="clearable && value"
43
43
  :color="disabled ? 'disabled' : 'default'"
44
44
  icon="close"
45
- @click="emit('input', null);"
45
+ @click.stop="clearValue"
46
46
  />
47
47
  </template>
48
48
  <template #arrow-left>
@@ -147,6 +147,16 @@ const isDateTime = props.mode === 'datetime';
147
147
  const requiredLabel = computed(() => {
148
148
  return props.required ? `${props.label}*` : props.label;
149
149
  });
150
+
151
+ const clearValue = () => {
152
+ emit('input', null);
153
+
154
+ if (isOpened.value) {
155
+ datepicker?.value.closeMenu();
156
+ }
157
+
158
+ isOpened.value = false;
159
+ };
150
160
  </script>
151
161
 
152
162
  <style lang="scss">