@indielayer/ui 1.7.3 → 1.7.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.
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.7.3";
1
+ declare const _default: "1.7.4";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = "1.7.3";
1
+ const e = "1.7.4";
2
2
  export {
3
3
  e as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indielayer/ui",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
5
5
  "author": {
6
6
  "name": "João Teixeira",
@@ -32,7 +32,7 @@ export default {
32
32
  </script>
33
33
 
34
34
  <script setup lang="ts">
35
- import { computed, ref, watch, type PropType, type ExtractPublicPropTypes, type Ref, nextTick, unref } from 'vue'
35
+ import { computed, ref, watch, type PropType, type ExtractPublicPropTypes, type Ref, nextTick, unref, onUnmounted } from 'vue'
36
36
  import { useEventListener } from '@vueuse/core'
37
37
  import { useColors } from '../../composables/useColors'
38
38
  import { useCommon } from '../../composables/useCommon'
@@ -190,8 +190,7 @@ function handleOptionClick(value: string | number) {
190
190
 
191
191
  if (!props.native) {
192
192
  nextTick(() => {
193
- elRef.value?.dispatchEvent(new Event('input'))
194
- elRef.value?.dispatchEvent(new Event('change'))
193
+ validate()
195
194
  labelRef.value?.$el.focus()
196
195
  })
197
196
  }
@@ -263,6 +262,10 @@ watch([isFocused, isOpen], ([isFocusedValue, isOpenValue]) => {
263
262
  immediate: true,
264
263
  })
265
264
 
265
+ onUnmounted(() => {
266
+ if (keyNavigationListener) keyNavigationListener()
267
+ })
268
+
266
269
  function handleKeyNavigation(e: KeyboardEvent) {
267
270
  if (internalOptions.value.length === 0) return
268
271
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '1.7.3'
1
+ export default '1.7.4'