Closed zsedcbm closed 5 years ago
I simplified the example.
If the child node is displayed at the time of initialization, then the grandchild node can trigger the event normally.
However, if the child node is not displayed when it is initialized, the event of the grandchild node cannot be triggered when the later change is displayed.
This should be fixed in current version. Can you retry?
good job, it worked
This should ideally be fixed in this repository, otherwise every application that uses a similar system as v-show in Vue.resize has to implement a similar method. Per instance we use angularJs and we have the same issue when we use ng-if. Thanks
@blemaire have you tried the current version? If it doesn't work, please prepare me some reproduction code, on jsfiddle or somewhere.
I used Vue.resize, it used ResizeSensor.js
child component used v-resize
when parent used v-show, the dom with v-show is "display:none", then child resize event is not work
when parent used v-if, then child resize event is work,
https://codepen.io/zsedcbm/pen/erQomg