mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [el-menu] compatible menu.value is null (#9566)
This commit is contained in:
@@ -217,6 +217,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const calcSliceIndex = () => {
|
||||
if (!menu.value) return -1
|
||||
const items = Array.from(menu.value?.childNodes ?? []).filter(
|
||||
(item) => item.nodeName !== '#text' || item.nodeValue
|
||||
) as HTMLElement[]
|
||||
|
||||
Reference in New Issue
Block a user