Open Closed

LeptonX top menu issues still present #6084


User avatar
0
DEKUKDEV created
  • ABP Framework version: v7.4.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace: N/A
  • Steps to reproduce the issue:

When the menu is set to appear at the Top, it does not render properly as expected after a login. The full description and steps to reproduce can be found here in a previous support issue 5636

This has been acknowledged as a bug in 7.3.2 was reported as having been fixed in the "Bugs and Issues 7.3.x" thread" to be included in the "next Release"

That next release would presumably have been 7.3.3, 7.4.0 or the just released 7.4.1, but unfortunately, it is still present!

Could we please have some clarity as to when we can see this fix appearing in the commercial codebase? Is there a link to any open issue that we can track? e.g. 7.4-Patch Issues

We're hoping that the fix to this issue also resolves the delayed CSS loading issue as they appear to be very closely related, and we would be unable to give a website to a client that renders in such a disjointed fashion!

Thank you.


18 Answer(s)
  • User Avatar
    0
    DEKUKDEV created

    Can we please have a response to this? It's been unanswered for a week now.

    Thank you.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hello DEKUKDEV

    I'm checking the problems in the v2.4

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Unlock this ticket as requested by DEKUKDEV

  • User Avatar
    0
    alper created
    Support Team Director

    you can write the latest siutation

  • User Avatar
    0
    ageiter created

    The problem still exists in ABP 7.4.2 and LeptonX 2.4.3

    In my case and I think I also speak for @DEKUKDEV it is like this:

    1. Login in BlazorApp with TopMenu layout (app was restarted)
    2. Move the mouse over a menu with submenu, normally the menu should open without clicking, but this does not happen.
    3. Now I click on "Administration" and then the menu opens, but only one item is visible in it.
    4. If I do not click on a submenu and leave the menu button, the "Administration" button retains the appearance of an active button. And now the automatic opening of the submenu when hovering over it also works. However, only the first item is still visible in the submenu.
    5. If I now reload the page (F5), then everything works as desired. Open when hovering over it and the complete submenu is displayed.

    Please let us know if you were at least able to reproduce the problem. At least 6 people are waiting for a solution, the problem was reported 2 months ago and it doesn't seem like you are doing anything about it (and otherwise you could at least keep us up to date and communicate a bit more about it).

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    The problem still exists in ABP 7.4.2 and LeptonX 2.4.3

    In my case and I think I also speak for @DEKUKDEV it is like this:

    1. Login in BlazorApp with TopMenu layout (app was restarted)
    2. Move the mouse over a menu with submenu, normally the menu should open without clicking, but this does not happen.
    3. Now I click on "Administration" and then the menu opens, but only one item is visible in it.
    4. If I do not click on a submenu and leave the menu button, the "Administration" button retains the appearance of an active button. And now the automatic opening of the submenu when hovering over it also works. However, only the first item is still visible in the submenu.
    5. If I now reload the page (F5), then everything works as desired. Open when hovering over it and the complete submenu is displayed.

    Please let us know if you were at least able to reproduce the problem. At least 6 people are waiting for a solution, the problem was reported 2 months ago and it doesn't seem like you are doing anything about it (and otherwise you could at least keep us up to date and communicate a bit more about it).

    I couldn't reproduce the same problem in the latest version of LeptonX for v2.4

    Do you have a specific scenario to reproduce it? Or please share reproduction steps from the beginning of the project creation?

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Sorry, I reproduced it when created a new project and logging in, I'll find the problem

  • User Avatar
    0
    DEKUKDEV created

    Hi enisn,

    Thanks for the update, much appreciated.

    Just to add, in our investigations we could see no physical difference in the html between a non-working and a working menu (after an F5 refresh), leading us to believe it is .css related. The related issue of the page loading .css dynamically as reported here 4809 seems to point to that area as being worth investigating?

    As can be seen in your recording in the previous post today, the page doesn't have all of its .css as it starts rendering and the user sees the page with no .css styling, and then it snaps into life as the browser applies the .css it receives some seconds later. Perhaps there is some blocking / race condition in the browser as these .css files arrive late?

    If this behaviour could be altered so we don't get any delayed .css loading at all, or we can switch it off with a flag? then that may fix both these related issues in one go?

    Of course, we don't know what the original design decisions were around the file leptonx-blazor-compatibility.js and what compatibility issue it was meant to resolve, but the name suggests there was some incompatibility issue in Blazor that may have gone away now, especially as Blazor Server and Blazor WASM have merged into one unified Blazor in .Net 8 if what I understand is correct.

    Thanks for all your hard work, and we look forward to being able to start new projects with LeptonX, as that's the theme we want to be using going forward.

    Thank you.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    As can be seen in your recording in the previous post today, the page doesn't have all of its .css as it starts rendering and the user sees the page with no .css styling, and then it snaps into life as the browser applies the .css it receives some seconds later. Perhaps there is some blocking / race condition in the browser as these .css files arrive late? Of course, we don't know what the original design decisions were around the file leptonx-blazor-compatibility.js and what compatibility issue it was meant to resolve, but the name suggests there was some incompatibility issue in Blazor that may have gone away now, especially as Blazor Server and Blazor WASM have merged into one unified Blazor in .Net 8 if what I understand is correct.

    Hi, The main reason we do this is because of theme styles (dark, light), When you switch, the style will be dynamically loaded by leptonx-blazor-compatibility.js

  • User Avatar
    0
    DEKUKDEV created

    Hi, The main reason we do this is because of theme styles (dark, light), When you switch, the style will be dynamically loaded by leptonx-blazor-compatibility.js

    Thats interesting.

    Can this dynamic loading be removed from the Blazor Server LeptonX implementation (by yourselves not us end users as a workaround), as I imagine that would remove the problem altogether, especially as the MVC LeptonX implementation doesn't have this issue and can switch its .css between light.css, dark.css, dim.css as required when the theme styles are selected, without any javascript being used to dynamically perform this task?

    In any case, can we please have an update on if this bug is any closer to being fixed?

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    especially as the MVC LeptonX implementation doesn't have this issue and can switch its .css between light.css, dark.css, dim.css as required when the theme styles are selected, without any javascript being used to dynamically perform this task?

    Because MVC UI refreshes the page every time, it doesn't need it.

    In any case, can we please have an update on if this bug is any closer to being fixed?

    This is the design and we will not change it at this time, we may consider implementing the Skeleton Loading States: https://styleguide.handy.com/native/skeleton-loading-states

  • User Avatar
    0
    DEKUKDEV created

    This is the design and we will not change it at this time, we may consider implementing the Skeleton Loading States: https://styleguide.handy.com/native/skeleton-loading-states

    Sadly, it sounds like no one is actively working on this bug as its been unresolved for over 4 months now, and new releases have come and gone.

    This is rather disappointing as its a commercial module that we've paid for through license fees and it appears that we now have to abandon the LeptonX theme as the bug seems unavoidable when using Blazor.

    Can you offer us any workaround? or is this bug considered unfixable or not worth the effort of fixing for whatever reason?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Sadly, it sounds like no one is actively working on this bug as its been unresolved for over 4 months now, and new releases have come and gone. This is rather disappointing as its a commercial module that we've paid for through license fees and it appears that we now have to abandon the LeptonX theme as the bug seems unavoidable when using Blazor. Can you offer us any workaround? or is this bug considered unfixable or not worth the effort of fixing for whatever reason?

    Sorry for that, I will reconsider this question and try to find a way.

    This is the temporary solution: https://support.abp.io/QA/Questions/6126/CSS-delay-loading-and-the-UI-would-flash#answer-3a0efc85-ee1a-266f-cfc5-aad1337e3227

  • User Avatar
    0
    DEKUKDEV created

    This is the temporary solution: https://support.abp.io/QA/Questions/6126/CSS-delay-loading-and-the-UI-would-flash#answer-3a0efc85-ee1a-266f-cfc5-aad1337e3227

    Thanks for the fast response, we'll give that workaround a try, along with the thread regarding replacing/removing leptonx-blazor-compatibility.js

    We're hoping that the whole delayed CSS loading will indeed get reworked/enhanced in version 3.0 as mentioned in that thread, to avoid this issue as there appears to be many other users affected also.

    For what its worth, we'd be very happy to have all the necessary .css loaded up front as the Lepton theme does, and we'd even be happy for the users to have to refresh the page themselves if they've changed the theme from dark to light or vice versa (if that is the reason for the whole delayed CSS loading), as this is typical in many Blazor apps.

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    : )

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi @DEKUKDEV

    The problem should be fixed in the next leptonx theme patch version.

    Here is the code, you can copy it to your project as a temporary solution. : https://gist.github.com/realLiangshiwei/70e19e34389ce7e567b5078a42db230a

    Before:

    After

  • User Avatar
    0
    DEKUKDEV created

    Hi @DEKUKDEV

    The problem should be fixed in the next leptonx theme patch version.

    Here is the code, you can copy it to your project as a temporary solution. : https://gist.github.com/realLiangshiwei/70e19e34389ce7e567b5078a42db230a

    ...

    Hi @liangshiwei,

    Thanks for that example code, it was very useful and informative.

    We've just created a new Blazor-Sever project in the current framework 8.0.1 on .Net 8 and the delayed .css loading issue seems to have been sorted, which was the issue we were discussing above in the last part of this thread re workarounds.

    For anyone else wanting to use that code, the only change I had to make was the following minor change, possibly due to me missing an extension method, a missing using statement or BundleFile changing (I didn't look at the history)

    Many thanks to everyone who has worked hard to resolve the delayed .css loading issue as it was affecting many people, but I should probably mention it here for clarity so it doesn't get missed (as I'm not sure when you say "The problem should be fixed" which of the two problems is being referred to!), that the original bug of only the first line of the menu being drawn upon the initial application start and a login, when the menus are set to TopMenu does appear to be still present unfortunately!

    That being said, you may well be aware of this and your post was informing of us of the correct workaround for the delayed .css loading - thank you.

    If not, then please be sure to Test out the TopMenu configuration (I won't post any screenshots or links, we have plenty of those already :-) )

    Thanks.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    when the menus are set to TopMenu does appear to be still present unfortunately!

    I will keep checking it

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09