Attribute inherited from sibling in a v-if/v-else structure
See original GitHub issueVersion
2.6.10
Reproduction link
https://codepen.io/anon/pen/YoygXR
Steps to reproduce
-
Keep the mouse out of the result iframe of Codepen. Initially “false” is printed and the
<progress>
is empty -
Trigger mousemove on the result iframe. The text is changed to “true” since progress now is === null and the
<progress>
is still empty
What is expected?
Since progress is === null (verified by the text) the <progress>
should be rendered without a value attribute, i.e. in an indeterminate state. This is expected because the v-if <progress>
doesn’t have a value attribute in the template.
What is actually happening?
The <progress>
rendered when progress === null has a value attribute set. I assume this is inherited from the v-else <progress>
.
Tested in Chrome ~74. Please ask any questions and I’ll provide further details.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Inheriting A House With A Sibling: A Guide - Rocket Mortgage
Unlike tenancy in common, joint tenancy means that all co-owners possess equal shares – or an equal amount of interest – in the...
Read more >Can Siblings Force the Sale of Inherited Property?
The decision of how to divide inherited property between siblings can be a complex one. This article acts as a comprehensive guide for ......
Read more >How To Divide Inherited Property Between Siblings? - RMO LLP
The short answer is they all do, and if the decedent still had a mortgage, the kids would inherit the debt and need...
Read more >Guide to Inheriting a House With Siblings | Inheritance Funding
If you and your siblings have recently inherited a house together, you've got a few options to consider. Click here to learn more...
Read more >What to Do When Inheriting a House with Siblings
“The siblings need to make sure they structure a fair price for the share of the property and may decide to use a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree. Could you please open a new issue with the minimal repro you just found? It’s already quite different from the original issue.
@Justineo: I’m not sure I follow.
Shouldn’t this be considered a bug? Please see the new example here: https://codepen.io/anon/pen/pXjBQq
There are two
<progress>
The first has
:value="progress"
where progress === undefinedThe second has
:value="undefined"
They are rendered differently, which seems counterintuitive.