vue-virtual-scroller icon indicating copy to clipboard operation
vue-virtual-scroller copied to clipboard

e.getBoundingClientRect is not a function

Open lpschz opened this issue 2 years ago • 0 comments
trafficstars

Describe the bug

// ../../../node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js at line 659:27
      const { $el: el, direction } = this;
      const isVertical = direction === 'vertical';
      let scrollState;

      if (this.pageMode) {
        const bounds = el.getBoundingClientRect();
        const boundsSize = isVertical ? bounds.height : bounds.width;
        let start = -(isVertical ? bounds.top : bounds.left);
        let size = isVertical ? window.innerHeight : window.innerWidth;
        if (start < 0) {
          size += start;

Reproduction

System Info

-

Used Package Manager

npm

Validations

lpschz avatar Feb 24 '23 00:02 lpschz