C#C
C#3y ago
skyslide22

Net8 Blazor onclick="js()" Not Working

i have a button with enhance navigation set to false but the blazor.web.js still fires and replaces my dom manipulations with the result from the server

the onclick is not working, blazot replaces the element instantly after js manipulation
i can see that in the network tab in the chrome dev tools

how can i disable that stuff?

    <a href="#ateam" data-enhance-nav="false" class="btn read-more-cta" onclick="this.style.display='none';">
        Read more
        @* <i class="fa fa-arrow-down"></i> *@
        <i class="fa-regular fa-chevrons-down"></i>
    </a>
Was this page helpful?