Skip to content

Commit 07d886d

Browse files
committed
Scroll fix
1 parent 82c6e11 commit 07d886d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue3-hive-ui-kit",
33
"private": false,
4-
"version": "0.7.25-alpha",
4+
"version": "0.7.26",
55
"type": "module",
66
"description": "UI kit for Vue 3",
77
"files": [

src/components/hive-drop-down/hive-drop-down.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ onMounted(() => {
109109
});
110110
111111
defineExpose({ current });
112+
113+
const onScroll = () => {
114+
searchRef.value?.forceFocus();
115+
};
112116
</script>
113117

114118
<template>
@@ -136,8 +140,8 @@ defineExpose({ current });
136140
@keydown.up.prevent="setPrevActiveValue"
137141
@keydown.down.prevent="setNextActiveValue"
138142
@input="onSearch<string>(emit, $event as string)"
143+
@focusout="collapse(), onFocusout(emit)"
139144
/>
140-
<!-- @focusout="collapse(), onFocusout(emit)" -->
141145
<i class="hive-drop-down__icon" :class="{ expand: isExpanded }" @mousedown="toggle" />
142146
</div>
143147
<transition name="fade" appear>
@@ -148,6 +152,7 @@ defineExpose({ current });
148152
:style="{
149153
maxHeight: menuHeight,
150154
}"
155+
@scroll="onScroll"
151156
>
152157
<div
153158
v-for="(item, i) in filteredOptions"

0 commit comments

Comments
 (0)