@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/components/select/Select.vue.js +129 -127
- package/lib/index.js +1 -1
- package/lib/index.umd.js +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/components/select/Select.vue +6 -3
- package/src/version.ts +1 -1
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.7.
|
|
1
|
+
declare const _default: "1.7.4";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
1
|
+
export default '1.7.4'
|