(Tried both in Visaul Studio 2019 V16.4.0 or V16.4.1. Microsoft.CodeAnalysis.FxCopAnalyzers added)
I'm using the following code in Blazor to disable inputs.
<input type="checkbox" @bind="@v" disabled="@(!isEditing || ...expression omitted...)" />
However, Visual Studio warns that
Warning '@(!isEditing || ...)' is not a valid value of attribute 'disabled'
What's the proper way to disable the input by custom logic?
...omitted...
?? Post the actual code or create a minimal reproducible example