phphe / vue-draggable-nested-tree

Vue2 draggable tree component
https://hetree.phphe.com/
MIT License
344 stars 62 forks source link

not working drag.. #90

Closed kyung-yeon closed 5 years ago

kyung-yeon commented 5 years ago
Uncaught TypeError: Cannot read property 'offsetHeight' of undefined
    at Object.drag (vue-draggable-nested-tree.es.js?d30b:1355)
    at drag (draggable-helper.esm.js?acb5:122)
    at HTMLDocument.moving (draggable-helper.esm.js?acb5:181)
    at HTMLDocument.wrapper (drag-event-service.es.js?6d58:79)

There is an error on this line.. vue-draggable-nested-tree.es.js line number 1355 dplh.innerStyle.height = store.el.offsetHeight + 'px';

why not found offsetHeight?

스크린샷 2019-08-12 오후 12 51 06
phphe commented 5 years ago

Ignore it if it does not affect the result. I am reconstructing this repo so I am not going to solve the issue.

kyung-yeon commented 5 years ago

@phphe draggable-helper updated 2days ago.

phphe commented 5 years ago

fixed in 2.2.18