question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute inherited from sibling in a v-if/v-else structure

See original GitHub issue

Version

2.6.10

Reproduction link

https://codepen.io/anon/pen/YoygXR

Steps to reproduce

  1. Keep the mouse out of the result iframe of Codepen. Initially “false” is printed and the <progress> is empty

  2. 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Justineocommented, Jun 14, 2019

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.

0reactions
Llbecommented, Jun 14, 2019

@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>

  1. The first has :value="progress" where progress === undefined

  2. The second has :value="undefined"

They are rendered differently, which seems counterintuitive.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found