'dotnet 6 Razor Add invalid property to View Elements

after migrating to dotnet 6 , razor add some attributes to html layout Elements

i tried new MVC Project from template

for example : Layout html contain :

<button class="navbar-toggler">
 <span class="navbar-toggler-icon"></span>
</button>

razor add random string "b-ykmsxw2c8j" to elements attribute

<button b-ykmsxw2c8j class="navbar-toggler">
    <span b-ykmsxw2c8j class="navbar-toggler-icon"></span>
</button>

how can i disable this ? i dont need this extra codes and attributes

in version 5 or earlier output code is clean without any extra attributes or codes



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source