Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

[Docs] Mention conflicting components workarounds

Open stsrki opened this issue 3 months ago • 2 comments

Some component names might conflict with the native Blazor components. Like ValidationSummary. We need to mention the workarounds in the docs:

  • define full namespace <Blazorise.ValidationSummary>
  • disable global namespaces(is possible)

stsrki avatar Apr 11 '24 15:04 stsrki

If the user is migrating an existing app with lots of Microsoft form components, then this might be worth trying

  1. Add this to _Imports.razor @using MSForms = Microsoft.AspNetCore.Components.Forms
  2. Prefix the existing ValidationSummary components with MSForms.
  3. Now the app should compile again
  4. As they migrate each form, remove the MSForms. prefix

mrpmorris avatar Apr 11 '24 16:04 mrpmorris

@mrpmorris thanks for the suggestion.

stsrki avatar Apr 12 '24 08:04 stsrki