🌐 AI搜索 & 代理 主页
Skip to content

Popover triggers focus occasionally throws error #4411

@thrazu

Description

@thrazu

Describe the bug

The environment:

Vue.js 2.6.10
Electron 2.0.18
Node 8.9.3
Platform linux

In my scenario I have a button which triggers a popover:

<b-nav-item id="popover-button-variant">Options</b-nav-item>

And this is the popover:

        <b-popover 
            target="popover-button-variant"
            triggers="focus"
        >
            <!-- show some text here -->
            <!-- button which triggers a modal -->
            <b-btn @click.stop="showConfig = true">Config</b-btn>
        </b-popover>

Everything works good sometimes: when the modal button is pressed, the modal shows and the popover disappear. So from time to time, after doing some clicks on the modal trigger button, then close the modal, close the popover and replay the procedure I'm getting this error:


[Vue warn]: Error in v-on handler: "TypeError: Cannot read property '$el' of undefined"

found in

---> <BTr>
       <BTbody>
         <BTable>
           <SystemInformation> at src/renderer/components/Main/SystemInformation.vue
             <BVPopoverTemplate>
               <BVPopover>
                 <BPopover>
                   <Ev> at src/renderer/App.vue
                     <Root>
warn @ vue.esm.js?a026:628
logError @ vue.esm.js?a026:1893
globalHandleError @ vue.esm.js?a026:1888
handleError @ vue.esm.js?a026:1848
invokeWithErrorHandling @ vue.esm.js?a026:1871
invoker @ vue.esm.js?a026:2188
original._wrapper @ vue.esm.js?a026:7559


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions