David-Desmaisons / Vue.resize

Vue directive to detect resize events with deboucing and throttling capacity.
MIT License
326 stars 36 forks source link

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

Closed zsedcbm closed 6 years ago

zsedcbm commented 6 years ago

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

David-Desmaisons commented 6 years ago

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

zsedcbm commented 6 years ago

I feedback this problem to css-element-queries , which can also occur when use css-element-queries alone https://github.com/marcj/css-element-queries/issues/228

zsedcbm commented 6 years ago

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

David-Desmaisons commented 6 years ago

Corrected in version 1.1.0.