We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently empty string '' is treated as invalid link.
''
When I use VListItem in the following way, if status is closed, <div> rather than <a> tag is rendered, because '' is .
closed
<div>
<a>
Moreover, when status changed, <div> won't be changed to <a> again, because it's not reactive.
I'm not sure this (treating empty string as invalid link) is by-design or a bug. If the maintainers think this is a bug, I can help code a solution
// status = 'opened' || 'closed' <v-list-item :to="status == 'closed' ? '' : `/item/${item.id}`" > ... </v-list-item>
Modify how determine a link is valid or not.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem to solve
Currently empty string
''
is treated as invalid link.When I use VListItem in the following way, if status is
closed
,<div>
rather than<a>
tag is rendered, because''
is .Moreover, when status changed,
<div>
won't be changed to<a>
again, because it's not reactive.I'm not sure this (treating empty string as invalid link) is by-design or a bug. If the maintainers think this is a bug, I can help code a solution
Proposed solution
Modify how determine a link is valid or not.
Versions
The text was updated successfully, but these errors were encountered: