File tree 2 files changed +7
-2
lines changed
src/components/hive-drop-down
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue3-hive-ui-kit" ,
3
3
"private" : false ,
4
- "version" : " 0.7.25-alpha " ,
4
+ "version" : " 0.7.26 " ,
5
5
"type" : " module" ,
6
6
"description" : " UI kit for Vue 3" ,
7
7
"files" : [
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ onMounted(() => {
109
109
});
110
110
111
111
defineExpose ({ current });
112
+
113
+ const onScroll = () => {
114
+ searchRef .value ?.forceFocus ();
115
+ };
112
116
</script >
113
117
114
118
<template >
@@ -136,8 +140,8 @@ defineExpose({ current });
136
140
@keydown.up.prevent =" setPrevActiveValue"
137
141
@keydown.down.prevent =" setNextActiveValue"
138
142
@input =" onSearch<string>(emit, $event as string)"
143
+ @focusout =" collapse(), onFocusout(emit)"
139
144
/>
140
- <!-- @focusout="collapse(), onFocusout(emit)" -->
141
145
<i class =" hive-drop-down__icon" :class =" { expand: isExpanded }" @mousedown =" toggle" />
142
146
</div >
143
147
<transition name =" fade" appear >
@@ -148,6 +152,7 @@ defineExpose({ current });
148
152
:style =" {
149
153
maxHeight: menuHeight,
150
154
}"
155
+ @scroll =" onScroll"
151
156
>
152
157
<div
153
158
v-for =" (item, i) in filteredOptions"
You can’t perform that action at this time.
0 commit comments