File tree 2 files changed +14
-8
lines changed
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 14
14
"skipTranspile" : false ,
15
15
"minify" : false ,
16
16
"sourcemap" : false ,
17
- "lazyCompile" : true
17
+ "lazyCompile" : false
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -29,11 +29,19 @@ Component(
29
29
? current
30
30
: defaultCurrent ;
31
31
const _index = items ?. findIndex ( ( u ) => initCurrent === u . label ) ;
32
- this . setData ( {
33
- currentKey : _index ,
34
- touchKeyIndex : _index ,
35
- touchKey : initCurrent ,
36
- } ) ;
32
+ this . setData (
33
+ {
34
+ currentKey : _index ,
35
+ touchKeyIndex : _index ,
36
+ touchKey : initCurrent ,
37
+ } ,
38
+ ( ) => {
39
+ this . setData ( {
40
+ touchKeyIndex : - 1 ,
41
+ touchKey : '' ,
42
+ } ) ;
43
+ }
44
+ ) ;
37
45
} ,
38
46
isControlled ( nextProps , valueKey = 'current' ) {
39
47
if ( 'controlled' in nextProps ) {
@@ -129,8 +137,6 @@ Component(
129
137
if ( currentKey !== newIndex - 1 && newIndex - 1 >= 0 && ! moving ) {
130
138
this . setData ( {
131
139
currentKey : newIndex - 1 ,
132
- touchKeyIndex : newIndex - 1 ,
133
- touchKey : items [ newIndex - 1 ] . label ,
134
140
} ) ;
135
141
this . onAlphabetClick ( items [ newIndex - 1 ] , newIndex - 1 ) ;
136
142
}
You can’t perform that action at this time.
0 commit comments