Absolutely-positioned flexbox child component with transition is duplicated in DOM when visibility is toggled via v-if in Firefox
See original GitHub issueVue 1.0.26 Firefox 47.0
Reproduction Link
http://jsfiddle.net/5sH6A/523/
Info
- Click the button to toggle the visibility of the
<test>
component. - The entrance transition works, but the leave transition doesn’t, causing the element to remain in the DOM indefinitely.
- Clicking the button multiple times results in multiple
<test>
components in the DOM.
The following things must be present for the bug to occur:
- It must be a component instance with visibility toggled via
v-if
. - It must be a flexbox child.
- It must be positioned absolutely.
- It must have a transition.
Vue.config.debug
must be false.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
CSS Flexbox Inspector: Examine Flexbox layouts
The Flexbox Inspector allows you to examine CSS Flexbox Layouts using the Firefox DevTools, which is useful for discovering flex containers on a...
Read more >During animation, the CSS visibility is improperly inherited by ...
During animation, the CSS visibility is improperly inherited by children (since Firefox 60). Summary: During animation, the CSS visibility is improperly ...
Read more >content-visibility - CSS: Cascading Style Sheets | MDN
The content-visibility CSS property controls whether or not an element renders its contents at all, along with forcing a strong set of ...
Read more >Animations / transitions of opacity and visibility together are ...
Created a banner animation consisting of a stage with elements that have many different animations like fade in, fade out. Until firefox 74...
Read more >Relationship of flexbox to other layout methods - CSS
You can use the Box Alignment properties across both layout methods, so using flexbox as a fallback for grid layout can work very...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing 1.x issues as 1.x is now end of life and will only receive critical security patches.
@posva But it works in 2.0 though
http://jsfiddle.net/xt3kabtr/