David-Desmaisons / Vue.resize

Vue directive to detect resize events with deboucing and throttling capacity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

child component used v-resize, when parent used in v-show, it not work

zsedcbm opened this issue · comments

child component used v-resize

when parent used v-show, then child resize event is not work

when parent used v-if, then child resize event is work

4

https://codepen.io/zsedcbm/pen/erQomg

I see nothing wrong. Please define the expected behaviour and why it is not ok in case of v-show.

I feedback this problem to css-element-queries , which can also occur when use css-element-queries alone
marcj/css-element-queries#228

when i use v-show, child component's val is not change, is always 10
when i use v-if, child components's v-resize worked, val is changed

Corrected in version 1.1.0.