viktorlarsson / vue-tiny-slider

Vanilla javascript slider for all purposes created by ganlanyuan in Vue.
MIT License
136 stars 51 forks source link

[Regression bug] Cannot read property 'getBoundingClientRect' of undefined #59

Open AndrewBogdanovTSS opened 4 years ago

AndrewBogdanovTSS commented 4 years ago

How to reproduce:

Actual Result: Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined Controls stay visible even there is only 1 slide https://take.ms/fj2Nq

Expected result: No errors in the console. Controls dissapear after slider initialization.

Bug was introduced in releases from 0.1.31 to 0.1.39 Not present in version 0.1.30

Repro link: https://codesandbox.io/s/vue-template-1510w

Related to: https://github.com/ganlanyuan/tiny-slider/issues/545

jonathanmachado commented 4 years ago

Same here

michaelkove commented 4 years ago

Has this been fixed? Or do we have a work-around?