Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ToolTip on Dialog forms (MudTabs => MudTabPanel => ToolTip and also <MudTooltip>) #10587

Open
3 of 4 tasks
onatsko opened this issue Jan 9, 2025 · 22 comments
Open
3 of 4 tasks

Comments

@onatsko
Copy link

onatsko commented Jan 9, 2025

Things to check

  • I have searched the existing issues for this bug
  • To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type

Component

Component name

MudTabs

What happened?

I have control MudTabs
I have two TabPanels with Tool tips

<MudTabs
    Outlined="true">
    <MudTabPanel
        Text="Tab 1"
        ToolTip="Tab 1 test tool tip"
        Icon="@Icons.Material.Filled.PersonSearch">
    </MudTabPanel>
    <MudTabPanel
        Text="Tab 2"
        ToolTip="Tab 2 test tool tip"
        Icon="@Icons.Material.Filled.Alarm">

    </MudTabPanel>
</MudTabs>

if this MudTabs on page - all works fine.
if I have a separate component that I open with DialogService

        var parameters = new DialogParameters<TestDialogForm>();
        
        var options = new DialogOptions
        {
            CloseOnEscapeKey = true, 
            CloseButton = true, 
            BackdropClick = true,
            MaxWidth = MaxWidth.Small, 
            FullWidth = true 
        };

        var dialog = await DialogService.ShowAsync<TestDialogForm>($"TestDialogForm", parameters, options);
        var result = await dialog.Result;

then when I open Dialog form and move mouse on one of any tabs - the whole screen is shaded and the form is inaccessible.

Expected behavior

I want ToolTips works ok

Reproduction link

https://try.mudblazor.com/snippet/mYQJEbutgixyinMW

Reproduction steps

  1. Update MudBlzor to 8.x version (I use )

  2. Add button to page
    image

  3. Open DialogForm
    image

  4. Move mouse to MudTabPanel
    image

(I copied code to https://try.mudblazor.com/snippet/mYQJEbutgixyinMW but it's work on try.mudblazor.com

Relevant log output

No response

Version (bug)

8.0.0-rc.1

Version (working)

6.x works fine

What browsers are you seeing the problem on?

Chrome

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@onatsko
Copy link
Author

onatsko commented Jan 9, 2025

I also had the same problem just with the control on other pages where I use Dialog Service. When DialogForm is invoked and it have - after mouse move on it - the whole screen is shaded

@ScarletKuro
Copy link
Member

@versile2

@ScarletKuro
Copy link
Member

Weird that it seems to work on https://try.arctechonline.tech which uses ~MudBlazor v8.0.0-preview.7 but in rc there is this change #10554

@versile2
Copy link
Contributor

versile2 commented Jan 9, 2025

I'm going to update try.arc real quick. Ok so not quick at all apparently everything needs to be updated. I have a test for this specific problem too but I'll figure it out today.

@versile2
Copy link
Contributor

versile2 commented Jan 9, 2025

@ScarletKuro I updated https://try.arctechonline.tech to the latest dev and this does not reproduce.

Some reason that PR wasn't included in RC1?

@onatsko
Copy link
Author

onatsko commented Jan 9, 2025

maybe I can create video with this effect? or any other information?

@versile2
Copy link
Contributor

versile2 commented Jan 9, 2025

just go to the try.arctechonline.tech and confirm it's fixed there if you can.

@onatsko
Copy link
Author

onatsko commented Jan 9, 2025

image

yes, on try.arctechonline.tech it works ok

@ScarletKuro
Copy link
Member

Can you try incognito mode on your app and confirm the problem still exist? Could be a JS cache issue?

@onatsko
Copy link
Author

onatsko commented Jan 9, 2025

I tried in incognito, also press Ctrl+F5.

create test page on our prod site, you can try
https://asu.pdau.edu.ua/admin/test

@versile2
Copy link
Contributor

versile2 commented Jan 9, 2025

Just to confirm the behavior displayed via your web page is not the current state of dev. Are you 100% sure you are using RC 1 and not the last preview? I can tell the difference because a mud-oiverlay inside a dialog should have style="" not a style with a zindex

@ScarletKuro
Copy link
Member

This seems to be a server side, so can't check myself what version it's using.

@ScarletKuro
Copy link
Member

ScarletKuro commented Jan 9, 2025

But from JS file I can tell it's not RC1, as it's missing the updatePopoverOverlay method, and not like that version would be deployed correctly as it was missing CSS style in nuget, so gotta use the RC2 now.

@marjanoh2
Copy link

marjanoh2 commented Jan 10, 2025

I noticed the same issue. When hovering over the buttons, the same thing happens. I try with latest RC2 version.
msedge_Tm7eVQoZui

@versile2
Copy link
Contributor

versile2 commented Jan 10, 2025

I noticed the same issue. When hovering over the buttons, the same thing happens. I try with latest RC2 version.

Let us know after you download RC2. I suggest making sure it's refreshed css/js by using Shift-F5 and/or Ctrl-Shift-R after it loads. Also if it is still happening give us an updated try.mudblazor.com (Even if it works there)

@marjanoh2
Copy link

I noticed the same issue. When hovering over the buttons, the same thing happens. I try with latest RC2 version.

Let us know after you download RC2. I suggest making sure it's refreshed css/js by using Shift-F5 and/or Ctrl-Shift-R after it loads. Also if it is still happening give us an updated try.mudblazor.com (Even if it works there)

I downgraded to version 8.0.0-preview.7, and it worked fine. However, after updating again to the latest RC2 version, the issue reappeared. I try with incognito in Chrome and Edge browsers.

@versile2
Copy link
Contributor

I noticed the same issue. When hovering over the buttons, the same thing happens. I try with latest RC2 version.

Let us know after you download RC2. I suggest making sure it's refreshed css/js by using Shift-F5 and/or Ctrl-Shift-R after it loads. Also if it is still happening give us an updated try.mudblazor.com (Even if it works there)

I downgraded to version 8.0.0-preview.7, and it worked fine. However, after updating again to the latest RC2 version, the issue reappeared. I try with incognito in Chrome and Edge browsers.

Can you give me a https://try.mudblazor.com snippet I can look at?

@marjanoh2
Copy link

marjanoh2 commented Jan 11, 2025

I believe the issue is related to the use of MudTooltip. When I commented it out on the first button, everything worked fine. However, the issue persists with the second button where MudTooltip is still applied.

 <MudItem xs="4">
@*      <MudTooltip Duration="1000" Text="@L["Switch to system"]"> *@
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.System))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.AutoMode" />
             </ChildContent>
         </MudButton>
  @*    </MudTooltip> *@
 </MudItem>
 <MudItem xs="4">
     <MudTooltip Duration="1000" Text="@L["Switch to Light Theme"]">
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.Light))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.WbSunny" />
             </ChildContent>
         </MudButton>
     </MudTooltip>
 </MudItem>

@versile2
Copy link
Contributor

I believe the issue is related to the use of MudTooltip. When I commented it out on the first button, everything worked fine. However, the issue persists with the second button where MudTooltip is still applied.

 <MudItem xs="4">
@*      <MudTooltip Duration="1000" Text="@L["Switch to system"]"> *@
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.System))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.AutoMode" />
             </ChildContent>
         </MudButton>
  @*    </MudTooltip> *@
 </MudItem>
 <MudItem xs="4">
     <MudTooltip Duration="1000" Text="@L["Switch to Light Theme"]">
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.Light))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.WbSunny" />
             </ChildContent>
         </MudButton>
     </MudTooltip>
 </MudItem>

I'm sure it is, is there any way you can create a snippet I can use?

Go here

https://try.arctechonline.tech

Put the code in, minimum amount to recreate

Save Snippet, paste the URL presented

@marjanoh2
Copy link

I believe the issue is related to the use of MudTooltip. When I commented it out on the first button, everything worked fine. However, the issue persists with the second button where MudTooltip is still applied.

 <MudItem xs="4">
@*      <MudTooltip Duration="1000" Text="@L["Switch to system"]"> *@
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.System))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.AutoMode" />
             </ChildContent>
         </MudButton>
  @*    </MudTooltip> *@
 </MudItem>
 <MudItem xs="4">
     <MudTooltip Duration="1000" Text="@L["Switch to Light Theme"]">
         <MudButton Class="mode-button"
                    FullWidth="true"
                    OnClick="@(() => ToggleDarkLightMode(DarkLightMode.Light))"
                    Style="background: white;">
             <ChildContent>
                 <MudIcon Color="Color.Primary"
                          Icon="@Icons.Material.Filled.WbSunny" />
             </ChildContent>
         </MudButton>
     </MudTooltip>
 </MudItem>

I'm sure it is, is there any way you can create a snippet I can use?

Go here

https://try.arctechonline.tech

Put the code in, minimum amount to recreate

Save Snippet, paste the URL presented

Use this template https://github.com/neozhu/CleanArchitectureWithBlazorServer. It is updated to RC2.

@versile2
Copy link
Contributor

I really do want to get it fixed and I have some general idea but downloading running and navigating through a 350mb repo isn't very beneficial to my time. If you can create a snippet I'll get on it asap.

@marjanoh2
Copy link

marjanoh2 commented Jan 11, 2025

I will attempt to explain and guide you through the main sections, which might make things clearer and more helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants