vue-tiny-slider icon indicating copy to clipboard operation
vue-tiny-slider copied to clipboard

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

Open AndrewBogdanovTSS opened this issue 5 years ago • 2 comments

How to reproduce:

  • create slider with 1 slide
  • set autoWidth to true

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

AndrewBogdanovTSS avatar Feb 26 '20 21:02 AndrewBogdanovTSS

Same here

jonathanmachado avatar Mar 24 '20 20:03 jonathanmachado

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

michaelkove avatar Apr 17 '20 10:04 michaelkove