jobdone-shared-files 1.0.10 → 1.0.11
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/autocompleteSelect.vue +6 -3
- package/package.json +1 -1
package/autocompleteSelect.vue
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<input class='form-control autocomplete-select-component-keyword-filter-input' :class="[triggerClass, searchInput]"
|
|
10
10
|
type="text" ref="keywordFilterInput" v-model="keyword"
|
|
11
11
|
:placeholder="searchPlaceholder == '' ? selectedPreviewText : searchPlaceholder" maxlength="50"
|
|
12
|
-
@keydown.enter="keyboardSelectConfirm($event)" @keydown.up="keyboardSwitch(-1)"
|
|
13
|
-
@keydown.down="keyboardSwitch(1)" @change="keyboardSwitchIndexReset()">
|
|
12
|
+
@keydown.enter="keyboardSelectConfirm($event)" @keydown.up="keyboardSwitch($event, -1)"
|
|
13
|
+
@keydown.down="keyboardSwitch($event, 1)" @change="keyboardSwitchIndexReset()">
|
|
14
14
|
<Teleport :to="listPut">
|
|
15
15
|
<div class="autocomplete-select-component-selector-content" :class="{ 'active': active }"
|
|
16
16
|
ref="componentContentList" :style="positionStyle">
|
|
@@ -304,7 +304,10 @@ function keyboardSelectConfirm(event) {
|
|
|
304
304
|
|
|
305
305
|
// 鍵盤挑選
|
|
306
306
|
const keyboardSwitchIndex = ref(0)
|
|
307
|
-
function keyboardSwitch(v) {
|
|
307
|
+
function keyboardSwitch(event, v) {
|
|
308
|
+
if (event.isComposing) {
|
|
309
|
+
return
|
|
310
|
+
}
|
|
308
311
|
if (filterList.value?.length < 1) {
|
|
309
312
|
keyboardSwitchIndexReset()
|
|
310
313
|
return
|