wangweiwei / vue-resize-observer

Vue Resize Observer
MIT License
61 stars 9 forks source link

Doesn't work as of Vue 2.6.14 #12

Open FightRay opened 9 months ago

FightRay commented 9 months ago

Tried this today in my Vue 2.6.14 project on th elements and the resize event doesn't fire when resizing, while the width does visibly change. Code is simple.

Blablabla

onResizeTableHead({width, height}) { console.log(width, height); // Doesn't fire }}

th { width: 100px; resize: horizontal; }

Of course, the package is installed correctly. In my entry point:

import VueResizeObserver from "vue-resize-observer";

Vue.use(VueResizeObserver);

(works, no errors)