Element: 2.10.0 element-ui-common.js Cannot read property 'disabled' of null at VueComponent.hide

Created on 24 Jul 2019  ·  11Comments  ·  Source: ElemeFE/element

2.10.0 element-ui-common.js Cannot read property 'disabled' of null at VueComponent.hide
Chrome console error
element-ui.common.js:2330 Uncaught TypeError: Cannot read property 'disabled' of null
at VueComponent.hide (element-ui.common.js:2330)
at Object.documentHandler (clickoutside.js:39)
at clickoutside.js:25
at Array.forEach ()
at HTMLDocument. (clickoutside.js:24)

Firefox console error
TypeError: this.triggerElm is null[Saber más] element-ui.common.js:2330
hide
element-ui.common.js:2330
hide self-hosted:981:17 createDocumentHandler/<
clickoutside.js:39
./node_modules/element-ui/lib/utils/clickoutside.js/ clickoutside.js:25
forEach self-hosted:268:13 ./node_modules/element-ui/lib/utils/clickoutside.js/<
clickoutside.js:24

invalid

Most helpful comment

Ok the issue in my code was that I had an <el-dropdown> with no child <el-dropdown-items>. Trivial repro: put this in your components:

  <el-dropdown />

All 11 comments

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

I am also facing this issue since I updated from 2.10.0 element.

Here is the screenshot:
Screen Shot 2020-01-28 at 12 33 43 PM

It is showing everywhere, even if I click to el-card or other elements.

Same here. The code where it is called is here.

clickoutside source

Can't see anything obviously wrong in the source.

Ok the issue in my code was that I had an <el-dropdown> with no child <el-dropdown-items>. Trivial repro: put this in your components:

  <el-dropdown />

+1. We were missing a dropdown slot on one of our el-dropdown which was resulting in any el-select or dropdown not working on our app.

Adding the following fixed it

<el-dropdown-menu slot="dropdown" />

hello,is there anyone having solved it?

+1.I have add the follow but no work:
<el-dropdown-menu slot="dropdown" />

Did you find a solution @dolphinfine ?

@androidfanatic I did it, it solved the "disabled" error, but I can't find any el-option in my el-select since there is this error..

@maximesahagian did you find any solution?

@jeffysam6 yes, it came from Jquery conflict, I had to remove Jquery from my VueJS app

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yorululu picture yorululu  ·  3Comments

no5no6 picture no5no6  ·  3Comments

mochenxm picture mochenxm  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

yubo111 picture yubo111  ·  3Comments