VUE+element UI :TypeError: Cannot read properties of null (reading ‘setAttribute‘)

报错提示:

element-ui.common.js:2436 Uncaught TypeError: Cannot read properties of null (reading 'setAttribute')
    at VueComponent.removeTabindex (element-ui.common.js:2436:1)
    at VueComponent.hide (element-ui.common.js:2334:1)
    at Object.eval [as documentHandler] (clickoutside.js:39:1)
    at eval (clickoutside.js:25:1)
    at Array.forEach ()
    at HTMLDocument.eval (clickoutside.js:24:1)

原因就是使用了 但是却没有它的子组件 

        
            
              更多菜单
            
          

解决办法:

1. 加一个

2. 不要用这个组件就行

你可能感兴趣的:(javascript,前端,vue.js)