vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.5.17] Failed to execute 'observe' on 'ResizeObserver'

Open ker-nicolaib opened this issue 1 year ago • 7 comments

Environment

Vuetify Version: 3.5.17 Vue Version: 3.4.25 Browsers: Chrome 124.0.0.0 OS: Windows

Steps to reproduce

Change the Version of Vue to 3.4.24 or 3.4.25. Then just add v-for to the v-select Tag like v-for="item in [1,2,3]". Then click on one of the select-fields.

Expected Behavior

No Error should appear in the Browser Console.

Actual Behavior

An Error appears in the Browser Console.

Reproduction Link

https://play.vuetifyjs.com/#...

ker-nicolaib avatar Apr 29 '24 09:04 ker-nicolaib

The error seems to only occurs when manually change Vue version and tweaking code at the same time.

The error couldn't be replicated when Vue version & code stays the same, they don't change when running a project. demo

Is this issue causing any issue in your project?

yuwu9145 avatar May 01 '24 06:05 yuwu9145

Looks like https://vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for but the v-for is sometimes leaking through the slot which would make sense if the ref wasn't also provided by the slot.

KaelWD avatar May 01 '24 06:05 KaelWD

I have same issue. In my case, it is not possible to change the value. So we refrain from upgrading vue from 3.4.23. How can I fit that?

naka87003 avatar May 01 '24 09:05 naka87003

Same thing here actually: #19685

I can reproduce both of these in our dev environment but not play.vuetifyjs.com

KaelWD avatar May 01 '24 09:05 KaelWD

Pass in :ref="el => {}" to slot rootv-list-item stops v-for leaking it to an array, could be a workaround.

yuwu9145 avatar May 01 '24 14:05 yuwu9145

that'll break the virtual scrolling

KaelWD avatar May 01 '24 14:05 KaelWD

What about :ref="el => props.ref.value = el"

yuwu9145 avatar May 01 '24 14:05 yuwu9145

Hello @yuwu9145 and @KaelWD , thank you for your efforts :-) So will this Problem be fixed in the next Version of Vuetify?

ker-nicolaib avatar May 07 '24 14:05 ker-nicolaib