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
x-bind:[attribute] on a falsy value still includes the attribute #485
Comments
The one you experienced at the moment. We discussed that a while ago on this thread: #280 (comment) |
Oh! And no outcome? Hmm. |
We were waiting for feedback then we just forgot, I suppose. 😂 |
We can open a PR for it. I think Caleb's unlikely to merge it because it's gonna have too many changes 🤷🏼♀️ |
@richgcook could you move your use-case comment into that other issue (& close this one)? The more people mention it's a problem, the more likely we'll go fix it. |
If I write
x-bind:href="article.external_url"
and if the value ofarticle.external_url
isnull
orfalse
then in Alpine thehref
is still bound but with a value ofnull
However, from the Vue.js docs, for example: https://vuejs.org/v2/guide/syntax.html#Attributes
What is the expected output here?
The text was updated successfully, but these errors were encountered: