File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 bg-color =" white"
1818 label =" license"
1919 clearable
20+ fill-input
21+ hide-selected
2022 input-debounce =" 0"
2123 outlined
2224 standout
4749<script lang="ts">
4850import { defineComponent , ref } from ' vue'
4951import { useCff } from ' ../store/cff'
52+ import { QSelect } from ' quasar'
5053import schema from ' ../schemas/1.2.0/schema.json'
5154import Stepper from ' components/Stepper.vue'
5255import StepperActions from ' components/StepperActions.vue'
@@ -67,17 +70,20 @@ export default defineComponent({
6770 licenses ,
6871 options ,
6972 setLicense ,
70- licenseFilterFunction (val : string , update : (a : unknown ) => void ) {
71- if (val === ' ' ) {
72- update (() => {
73- options .value = licenses
74- })
75- return
76- }
77-
73+ licenseFilterFunction (val : string , update : (a : unknown , b : unknown ) => void ) {
7874 update (() => {
79- const needle = val .toLowerCase ()
80- options .value = licenses .filter (v => v .toLowerCase ().indexOf (needle ) > - 1 )
75+ if (val === ' ' ) {
76+ options .value = licenses
77+ } else {
78+ const needle = val .toLowerCase ()
79+ options .value = licenses .filter (v => v .toLowerCase ().indexOf (needle ) > - 1 )
80+ }
81+ },
82+ (ref : QSelect ) => {
83+ if (val !== ' ' && ref .options !== undefined && ref .options .length > 0 ) {
84+ ref .setOptionIndex (- 1 )
85+ ref .moveOptionSelection (1 , true )
86+ }
8187 })
8288 }
8389 }
You can’t perform that action at this time.
0 commit comments