vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
673 stars 32 forks source link

Tooltip in Navigation Link throws error #151

Closed jmaster92 closed 1 year ago

jmaster92 commented 1 year ago

When I lay Tooltip in any component like NavLink or add the "onclick" attribute to the Tooltip like@onclick=@( ()=> { Navigation.NavigateTo("component"); }). Tooltips not hide and browsers launch the following error in console: "Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find 'window.blazorBootstrap.tooltip.dispose' ('dispose' was undefined). findFunction/<@http://localhost:5226/_framework/blazor.webassembly.js:1:328"

gvreddy04 commented 1 year ago

@jmaster92 Can you share the sample code or project?

Please share the below details:

jmaster92 commented 1 year ago

@jmaster92 Can you share the sample code or project?

Please share the below details:

* .NET Version

* WebAssembly/Server

* BlazorBootstrap Version

* Bootstrap Version

Shure, Net Version: 7.0 Blazor WebAssembly BlazorBootstrap Version: 1.4.3 Bootstrap Version: v5.3.0-alpha1 (maybe this is the error?)

both elements in the following code throws error

@page "/myMainRoute"
@inject NavigationManager Navigation

<div class="row">
    <Tooltip Title="Tooltip Left" Placement="TooltipPlacement.Left" @onclick="@(()=>{ Navigation.NavigateTo("MyMainRoute/AnotherRoute"); })">Tooltip Left</Tooltip>
</div>
<div class="row">
    <NavLink href="MyMainRoute/AnotherRoute">
        <Tooltip Title="Tooltip Left" Placement="TooltipPlacement.Left">Tooltip Left</Tooltip>
    </NavLink>
</div>

tooltip_issue

when any of both is clicked, the screen render another component and the Tooltip label appears on top of the screen (instead of hide it) an blazor throws error described previously

gvreddy04 commented 1 year ago

@jmaster92 I'm not able to replicate the issue with the sample code provided. Can you share a sample project with minimal code to reproduce the issue?

gvreddy04 commented 1 year ago

@jmaster92 We are assuming that your issue is being resolved. For any issues, please open a new one.