mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
fix(select-menu): keyboard not working when multiple
This commit is contained in:
parent
afd648069b
commit
9ef3cf0b0d
@ -161,11 +161,14 @@ export default {
|
||||
setup (props) {
|
||||
const virtualListRef = ref(null)
|
||||
const scrollbarRef = ref(null)
|
||||
const { treeMate } = props
|
||||
const pendingNodeRef = ref(
|
||||
props.autoPending
|
||||
? props.value === null
|
||||
? props.treeMate.getFirstAvailableNode()
|
||||
: props.treeMate.getNode(props.value)
|
||||
? treeMate.getFirstAvailableNode()
|
||||
: props.multiple
|
||||
? treeMate.getNode((props.value || [])[0]) || treeMate.getFirstAvailableNode()
|
||||
: treeMate.getNode(props.value) || treeMate.getFirstAvailableNode()
|
||||
: null
|
||||
)
|
||||
onMounted(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user