mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-10 07:07:56 +08:00
fix(components): [select] fix option-group get wrong visible (#9726)
* fix(components): [select] fix option-group get wrong visible * fix(components): [select] fix option-group get wrong visible * fix(components): [select] fix option-group get wrong visible Co-authored-by: qinye <953218204@qq.com>
This commit is contained in:
parent
189c379ddc
commit
c64ea617ef
@ -77,9 +77,13 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const { groupQueryChange } = toRaw(select)
|
||||
watch(groupQueryChange, () => {
|
||||
visible.value = children.value.some((option) => option.visible === true)
|
||||
})
|
||||
watch(
|
||||
groupQueryChange,
|
||||
() => {
|
||||
visible.value = children.value.some((option) => option.visible === true)
|
||||
},
|
||||
{ flush: 'post' }
|
||||
)
|
||||
|
||||
return {
|
||||
visible,
|
||||
|
Loading…
Reference in New Issue
Block a user