@@ -95,7 +95,8 @@ function useValue (props, context)
95
95
}
96
96
97
97
function useSearch ( props , context , dep )
98
- { const { regex } = toRefs ( props ) ;
98
+ {
99
+ const { regex } = toRefs ( props ) ;
99
100
100
101
const $this = getCurrentInstance ( ) . proxy ;
101
102
@@ -1501,6 +1502,11 @@ function useKeyboard (props, context, dep)
1501
1502
case 'Enter' :
1502
1503
e . preventDefault ( ) ;
1503
1504
1505
+ if ( e . keyCode === 229 ) {
1506
+ // ignore IME confirmation
1507
+ return
1508
+ }
1509
+
1504
1510
if ( activeIndex !== - 1 && activeIndex !== undefined ) {
1505
1511
update ( [ ...iv . value ] . filter ( ( v , k ) => k !== activeIndex ) ) ;
1506
1512
@@ -1594,7 +1600,10 @@ function useKeyboard (props, context, dep)
1594
1600
break
1595
1601
1596
1602
case 'ArrowLeft' :
1597
- if ( ( searchable . value && tags . value . querySelector ( 'input' ) . selectionStart ) || e . shiftKey || mode . value !== 'tags' || ! iv . value || ! iv . value . length ) {
1603
+ if (
1604
+ ( searchable . value && tags . value && tags . value . querySelector ( 'input' ) . selectionStart )
1605
+ || e . shiftKey || mode . value !== 'tags' || ! iv . value || ! iv . value . length
1606
+ ) {
1598
1607
return
1599
1608
}
1600
1609
@@ -2410,22 +2419,19 @@ const _hoisted_4 = ["onKeyup", "aria-label"];
2410
2419
const _hoisted_5 = [ "onClick" ] ;
2411
2420
const _hoisted_6 = [ "type" , "modelValue" , "value" , "id" , "autocomplete" , "aria-controls" , "aria-placeholder" , "aria-expanded" , "aria-activedescendant" , "aria-multiselectable" ] ;
2412
2421
const _hoisted_7 = [ "innerHTML" ] ;
2413
- const _hoisted_8 = [ "innerHTML " ] ;
2414
- const _hoisted_9 = [ "id" ] ;
2415
- const _hoisted_10 = [ "id " , "aria-label " , "aria-selected " ] ;
2416
- const _hoisted_11 = [ "data-pointed" , "onMouseenter" , "onClick "] ;
2417
- const _hoisted_12 = [ "innerHTML " ] ;
2418
- const _hoisted_13 = [ "aria-label" ] ;
2422
+ const _hoisted_8 = [ "id " ] ;
2423
+ const _hoisted_9 = [ "id" , "aria-label" , "aria-selected" ] ;
2424
+ const _hoisted_10 = [ "data-pointed " , "onMouseenter " , "onClick " ] ;
2425
+ const _hoisted_11 = [ "innerHTML " ] ;
2426
+ const _hoisted_12 = [ "aria-label " ] ;
2427
+ const _hoisted_13 = [ "data-pointed" , "data-selected" , "onMouseenter" , "onClick" , "id" , "aria-selected" , " aria-label"] ;
2419
2428
const _hoisted_14 = [ "data-pointed" , "data-selected" , "onMouseenter" , "onClick" , "id" , "aria-selected" , "aria-label" ] ;
2420
2429
const _hoisted_15 = [ "innerHTML" ] ;
2421
- const _hoisted_16 = [ "data-pointed" , "data-selected" , "onMouseenter" , "onClick" , "id" , "aria-selected" , "aria-label" ] ;
2422
- const _hoisted_17 = [ "innerHTML" ] ;
2423
- const _hoisted_18 = [ "innerHTML" ] ;
2424
- const _hoisted_19 = [ "innerHTML" ] ;
2425
- const _hoisted_20 = [ "value" ] ;
2426
- const _hoisted_21 = [ "name" , "value" ] ;
2427
- const _hoisted_22 = [ "name" , "value" ] ;
2428
- const _hoisted_23 = [ "id" ] ;
2430
+ const _hoisted_16 = [ "innerHTML" ] ;
2431
+ const _hoisted_17 = [ "value" ] ;
2432
+ const _hoisted_18 = [ "name" , "value" ] ;
2433
+ const _hoisted_19 = [ "name" , "value" ] ;
2434
+ const _hoisted_20 = [ "id" ] ;
2429
2435
2430
2436
function render ( _ctx , _cache , $props , $setup , $data , $options ) {
2431
2437
return ( openBlock ( ) , createElementBlock ( "div" , {
@@ -2556,9 +2562,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2556
2562
class : normalizeClass ( _ctx . classList . singleLabel )
2557
2563
} , [
2558
2564
createElementVNode ( "span" , {
2559
- class : normalizeClass ( _ctx . classList . singleLabelText ) ,
2560
- innerHTML : _ctx . iv [ $props . label ]
2561
- } , null , 10 /* CLASS, PROPS */ , _hoisted_7 )
2565
+ class : normalizeClass ( _ctx . classList . singleLabelText )
2566
+ } , toDisplayString ( _ctx . iv [ $props . label ] ) , 3 /* TEXT, CLASS */ )
2562
2567
] , 2 /* CLASS */ )
2563
2568
] )
2564
2569
: createCommentVNode ( "v-if" , true ) ,
@@ -2571,7 +2576,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2571
2576
createElementVNode ( "div" , {
2572
2577
class : normalizeClass ( _ctx . classList . multipleLabel ) ,
2573
2578
innerHTML : _ctx . multipleLabelText
2574
- } , null , 10 /* CLASS, PROPS */ , _hoisted_8 )
2579
+ } , null , 10 /* CLASS, PROPS */ , _hoisted_7 )
2575
2580
] )
2576
2581
: createCommentVNode ( "v-if" , true ) ,
2577
2582
createCommentVNode ( " Placeholder " ) ,
@@ -2659,9 +2664,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2659
2664
} , ( ) => [
2660
2665
createElementVNode ( "span" , {
2661
2666
innerHTML : group [ $props . groupLabel ]
2662
- } , null , 8 /* PROPS */ , _hoisted_12 )
2667
+ } , null , 8 /* PROPS */ , _hoisted_11 )
2663
2668
] )
2664
- ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_11 ) ,
2669
+ ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_10 ) ,
2665
2670
createElementVNode ( "ul" , {
2666
2671
class : normalizeClass ( _ctx . classList . groupOptions ) ,
2667
2672
"aria-label" : _ctx . ariaGroupLabel ( group ) ,
@@ -2686,14 +2691,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2686
2691
isPointed : _ctx . isPointed ,
2687
2692
search : _ctx . search
2688
2693
} , ( ) => [
2689
- createElementVNode ( "span" , {
2690
- innerHTML : option [ $props . label ]
2691
- } , null , 8 /* PROPS */ , _hoisted_15 )
2694
+ createElementVNode ( "span" , null , toDisplayString ( option [ $props . label ] ) , 1 /* TEXT */ )
2692
2695
] )
2693
- ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_14 ) )
2696
+ ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_13 ) )
2694
2697
} ) , 128 /* KEYED_FRAGMENT */ ) )
2695
- ] , 10 /* CLASS, PROPS */ , _hoisted_13 )
2696
- ] , 10 /* CLASS, PROPS */ , _hoisted_10 ) )
2698
+ ] , 10 /* CLASS, PROPS */ , _hoisted_12 )
2699
+ ] , 10 /* CLASS, PROPS */ , _hoisted_9 ) )
2697
2700
} ) , 128 /* KEYED_FRAGMENT */ ) )
2698
2701
: ( openBlock ( true ) , createElementBlock ( Fragment , { key : 1 } , renderList ( _ctx . fo , ( option , i , key ) => {
2699
2702
return ( openBlock ( ) , createElementBlock ( "li" , {
@@ -2714,27 +2717,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2714
2717
isPointed : _ctx . isPointed ,
2715
2718
search : _ctx . search
2716
2719
} , ( ) => [
2717
- createElementVNode ( "span" , {
2718
- innerHTML : option [ $props . label ]
2719
- } , null , 8 /* PROPS */ , _hoisted_17 )
2720
+ createElementVNode ( "span" , null , toDisplayString ( option [ $props . label ] ) , 1 /* TEXT */ )
2720
2721
] )
2721
- ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_16 ) )
2722
+ ] , 42 /* CLASS, PROPS, HYDRATE_EVENTS */ , _hoisted_14 ) )
2722
2723
} ) , 128 /* KEYED_FRAGMENT */ ) )
2723
- ] , 10 /* CLASS, PROPS */ , _hoisted_9 ) ,
2724
+ ] , 10 /* CLASS, PROPS */ , _hoisted_8 ) ,
2724
2725
( _ctx . noOptions )
2725
2726
? renderSlot ( _ctx . $slots , "nooptions" , { key : 0 } , ( ) => [
2726
2727
createElementVNode ( "div" , {
2727
2728
class : normalizeClass ( _ctx . classList . noOptions ) ,
2728
2729
innerHTML : $props . noOptionsText
2729
- } , null , 10 /* CLASS, PROPS */ , _hoisted_18 )
2730
+ } , null , 10 /* CLASS, PROPS */ , _hoisted_15 )
2730
2731
] )
2731
2732
: createCommentVNode ( "v-if" , true ) ,
2732
2733
( _ctx . noResults )
2733
2734
? renderSlot ( _ctx . $slots , "noresults" , { key : 1 } , ( ) => [
2734
2735
createElementVNode ( "div" , {
2735
2736
class : normalizeClass ( _ctx . classList . noResults ) ,
2736
2737
innerHTML : $props . noResultsText
2737
- } , null , 10 /* CLASS, PROPS */ , _hoisted_19 )
2738
+ } , null , 10 /* CLASS, PROPS */ , _hoisted_16 )
2738
2739
] )
2739
2740
: createCommentVNode ( "v-if" , true ) ,
2740
2741
( $props . infinite && _ctx . hasMore )
@@ -2760,7 +2761,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2760
2761
tabindex : "-1" ,
2761
2762
value : _ctx . textValue ,
2762
2763
required : ""
2763
- } , null , 10 /* CLASS, PROPS */ , _hoisted_20 ) )
2764
+ } , null , 10 /* CLASS, PROPS */ , _hoisted_17 ) )
2764
2765
: createCommentVNode ( "v-if" , true ) ,
2765
2766
createCommentVNode ( " Native input support " ) ,
2766
2767
( $props . nativeSupport )
@@ -2771,14 +2772,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2771
2772
type : "hidden" ,
2772
2773
name : $props . name ,
2773
2774
value : _ctx . plainValue !== undefined ? _ctx . plainValue : ''
2774
- } , null , 8 /* PROPS */ , _hoisted_21 ) )
2775
+ } , null , 8 /* PROPS */ , _hoisted_18 ) )
2775
2776
: ( openBlock ( true ) , createElementBlock ( Fragment , { key : 1 } , renderList ( _ctx . plainValue , ( v , i ) => {
2776
2777
return ( openBlock ( ) , createElementBlock ( "input" , {
2777
2778
type : "hidden" ,
2778
2779
name : `${ $props . name } []` ,
2779
2780
value : v ,
2780
2781
key : i
2781
- } , null , 8 /* PROPS */ , _hoisted_22 ) )
2782
+ } , null , 8 /* PROPS */ , _hoisted_19 ) )
2782
2783
} ) , 128 /* KEYED_FRAGMENT */ ) )
2783
2784
] , 64 /* STABLE_FRAGMENT */ ) )
2784
2785
: createCommentVNode ( "v-if" , true ) ,
@@ -2789,7 +2790,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2789
2790
class : normalizeClass ( _ctx . classList . assist ) ,
2790
2791
id : _ctx . ariaAssist ,
2791
2792
"aria-hidden" : "true"
2792
- } , toDisplayString ( _ctx . ariaLabel ) , 11 /* TEXT, CLASS, PROPS */ , _hoisted_23 ) )
2793
+ } , toDisplayString ( _ctx . ariaLabel ) , 11 /* TEXT, CLASS, PROPS */ , _hoisted_20 ) )
2793
2794
: createCommentVNode ( "v-if" , true ) ,
2794
2795
createCommentVNode ( " Create height for empty input " ) ,
2795
2796
createElementVNode ( "div" , {
0 commit comments