fixed Select bug when options is null and keydown up
or down
This commit is contained in:
parent
f0c2af9d2d
commit
500694ba39
2 changed files with 61 additions and 35 deletions
|
@ -556,6 +556,7 @@
|
|||
},
|
||||
resetScrollTop () {
|
||||
const index = this.focusIndex - 1;
|
||||
if (!this.optionInstances.length) return;
|
||||
let bottomOverflowDistance = this.optionInstances[index].$el.getBoundingClientRect().bottom - this.$refs.dropdown.$el.getBoundingClientRect().bottom;
|
||||
let topOverflowDistance = this.optionInstances[index].$el.getBoundingClientRect().top - this.$refs.dropdown.$el.getBoundingClientRect().top;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue