mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user