Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.5.16] VTreeview lines argument throwing invalid prop when entering false #19638

Closed
aaronzi opened this issue Apr 18, 2024 · 0 comments · Fixed by #19668 or Enterprise-CMCS/cmcs-eregulations#1315 · May be fixed by YoutacRandS-VA/desec-stack#2
Assignees
Labels
C: VTreeview VTreeview T: bug Functionality that does not work as intended/expected
Milestone

Comments

@aaronzi
Copy link

aaronzi commented Apr 18, 2024

Environment

Vuetify Version: 3.5.16
Vue Version: 3.4.21
Browsers: Chrome 123.0.0.0
OS: Windows 10, Linux

Steps to reproduce

Setting lines to false like this:

<v-treeview :items="items" :lines="false"></v-treeview>

throws the following warning in the browser:

Invalid prop: type check failed for prop "lines". Expected String, got Boolean with value false.
 at <VListItemref=Ref<[object Object]>active=undefinedactiveClass=undefined ...>
 at <VTreeviewItemtitle="Conference introduction : avi"value=undefined>
 at <VTreeviewChildrenloadChildren=undefinedloadingIcon="$loading"items=[object Object],[object Object],[object Object] ...>
 at <BaseTransitionappear=falsepersisted=falsemode=undefined ...>
 at <Transitionname="expand-transition"css=trueonBeforeEnter=fn<onBeforeEnter> ...>
 at <ExpandTransitiondisabled=false>
 at <MaybeTransitiontransition=[object Object]disabled=false>
 at <VListGroupactiveColor=undefinedbaseColor=undefinedcolor=undefined ...>
 at <VTreeviewGroupvalue=undefinedtitle="Videos :">
 at <VTreeviewChildrenloadChildren=undefinedloadingIcon="$loading"items=[object Object],[object Object],[object Object],[object Object] ...>
 at <VListChildrenitems=[object Object],[object Object],[object Object],[object Object]returnObject=false>
 at <VListref=Ref<[object Object]>baseColor=undefinedactiveColor=undefined ...>
 at <VTreeviewitems=[object Object],[object Object],[object Object],[object Object]lines=false>
 at <App>

Expected Behavior

No warning because false should be a valid prop for lines.

Actual Behavior

Warning saying prop type check failed.

Reproduction Link

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

@johnleider johnleider self-assigned this May 6, 2024
@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VTreeview VTreeview and removed S: triage labels May 6, 2024
@johnleider johnleider added this to the v3.6.x milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment