Aspnetcore: HTML warning when setting disabled attribute using Razor syntax

Created on 5 Nov 2019  路  7Comments  路  Source: dotnet/aspnetcore

In Blazor Server app with .NET Core 3.0 in a .razor file:

image

Warning: '@IsDisabled' is not a valid value of attribute 'disabled'
VS 16.3.7

External area-blazor bug

Most helpful comment

OK, was able to track this down. Believe it or not, this comes from a partial parse issue that's been in our code forever. Just checked in a fix and should be fixed in 16.6.

All 7 comments

@NTaylorMullen @ajaybhargavb I imagine this is yours?

encasing it in @() fixes it, but this should work without that.

@ToddGrun this is on your plate.

encasing it in @() fixes it, but this should work without that.

Actually it doesnt
image

OK, was able to track this down. Believe it or not, this comes from a partial parse issue that's been in our code forever. Just checked in a fix and should be fixed in 16.6.

@ToddGrun How long away is 16.6? I'd hoped for something closer, since this seems like something small enough for a patch. (IMO. I have literally no idea how your release process works.)

16.6 Preview 1 should be available in the next few weeks. Unfortunately, 16.5 is in a state now where it鈥檚 getting ready to release, and we won鈥檛 take even small changes unless there is a major need to do so.

Was this page helpful?
0 / 5 - 0 ratings