This repository has been archived by the owner on May 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 928
"TypeError: popover is null" issue in firefox (with solution) #510
Comments
Reason:
Issue file: vue-strap/src/utils/popoverMixins.js
when call toggle function, once set the "this.show = true", then the VUE will take time to render the popover div , but In firefox the setTimeout may execute before the popover div rendered, so it will cause the popover el null error. |
Solution in toggle function, change setTimeout function to the following:
|
OneOfTheWorld
changed the title
"TypeError: popover is null" issue in firefox
"TypeError: popover is null" issue in firefox (with solution)
Aug 8, 2017
OneOfTheWorld
pushed a commit
to OneOfTheWorld/vue-strap
that referenced
this issue
Aug 8, 2017
shaoxiong789
added a commit
that referenced
this issue
Nov 8, 2017
Proposed fixing for #510: "TypeError: popover is null" issue in fire…
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Branch: master
Error description:
<div class="cntr-flag" v-if="!isUseDefaultCost"> <tooltip effect="scale" placement="left" trigger="click"> <div slot="content" style="width: 150px;"> Container Size/Type: {{cntrSizeType}} </div> <div class="cntr-rotate"> {{cntrSizeType}} </div> </tooltip> </div>
as the above code, I want to use Tooltip.vue to show some tips to user, but found that
In chrome, the tooltip can always show rightly, but in firefox the tooltip sometimes can not show rightly:
Right one:
Wrong one:
and the console output the following error:
The text was updated successfully, but these errors were encountered: