Issue—CSS Lint warning in site.css Blazor.
This known bug is fixed in the latest Visual Studio release. Refer to the thread CSS lint warnings in site.css of Blazor.
How do you validate Blazor forms inside the bootstrap modal?
You have to use the EditContext with EditForm to validate the forms inside a bootstrap modal.
How do you manually trigger the form validation in Blazor?
You have to define and bind the EditContext with EditForm and then call the method editContext.Validate() on button click to manually trigger the validation.
Is there an inline class for form attributes validation in Blazor? How do you define the validations in Razor component files?
You can define the form attribute validation in a Razor component inside the function to achieve this. Please do not forget to include the DataAnnotations in the Razor component file. Please refer to this documentation for more form validations.
Where should I access the DOM elements?
You have to access the DOM elements in OnAfterRender or OnAfterRenderAsync of the Blazor component lifecycle. [JS Helper] [Razor] Have a look at the Blazor component lifecycle for more information.