File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ export default {
268
268
let items = this .$children
269
269
items .map ((item )=> {
270
270
// let text = item.$el.innerText.replace('check_circle','')
271
+ if (! (' vsText' in item)) return
271
272
let text = item .vsText
272
273
if (this .vsMultiple ){
273
274
let valuesx = value .split (' ,' )
Original file line number Diff line number Diff line change @@ -185,15 +185,17 @@ export default {
185
185
}
186
186
}
187
187
188
+ const children = this .$parent .$slots .default
188
189
if (orientation == ' prev' ){
189
190
orientationObject = ' previousSibling'
190
- lengthx = this . $parent . $ children .length - 1
191
+ lengthx = children .length
191
192
}
192
193
let nextElement = getNextLi (this .$el [orientationObject],orientationObject)
193
194
if (nextElement){
194
195
nextElement .querySelector (' .vs-select-item-btn' ).focus ()
195
196
} else {
196
- getNextLi (this .$parent .$children [lengthx].$el ,orientationObject).querySelector (' .vs-select-item-btn' ).focus ()
197
+ if (lengthx === children .length ) lengthx--
198
+ getNextLi (children[lengthx].elm ,orientationObject).querySelector (' .vs-select-item-btn' ).focus ()
197
199
}
198
200
},
199
201
focusValue (index ){
You can’t perform that action at this time.
0 commit comments