-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Setting progress element value to 0 is removed from the markup #6704
Comments
#6119 and the new DOM renderer is the root cause for this (and HTML being quirky as always). It's caused by PS. You can also set it to just an empty string as a work-around. |
Now that you mention input, it's doing some weird things with If I set
|
@ScottDowne That's "intended" and a behavior exhibited by HTML (try typing in a regular input and inspect). Anyway, this is known issue and it's being indirectly fixed AFAIK, the end result being that value should not be special-cased at all but rather handled differently by |
Ran into this as well, hopefully #5680 can be rebased and resolved soon (it looks like it's been gathering a bit of dust?) |
ah, nice! |
Fixed in #6406 |
One possible workaround (for the ones that are still using the unfixed version) is |
Seems like
<progress max="5" value="0"/>
isn't working as expected.Here it is in regular HTML: https://jsfiddle.net/a4zx1oq2/
Expected: rendered an empty progress bar.
In react however, it's rendered as https://jsfiddle.net/6xsnLaey/1/
I noticed however, setting the value to
0
incomponenetDidMount
seems to get around this bug, same with using-0
Here it is in react: https://jsfiddle.net/69z2wepo/40939/
The text was updated successfully, but these errors were encountered: