The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

Bug to open user button after visiting an error page.


Hello, I found an error in your Angular 1 demo and I would like to know if you can help me to correct this bug which is very annoying.

The bug to reproduce is the following:
Step 1. login to demo - Ok status
Step 2. I click on the user button, a menu appears where my profile appears among other items including the possibility of logging out - Status Ok
Step 3. I click on the menu page that says Error 404 , and I am taken to the 404 error page - Status Ok.
Step 4. I click on the return home button, and I return to the dashboard page - Ok status
Step 5. I click on the user button, and here's the bug, the menu no longer appears and I can't logout - KO status - BUG

Best regards,
Paulo


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi Paulo,

Thank you for the workaround you shared for the user dropdown bug.

If you encounter any further issues or have more questions, feel free to ask.



Hi Paulo,

Thank you for bringing this issue to our attention. We apologize for any inconvenience this may have caused.

It appears that there might be a problem with the dropdown functionality not working as expected after navigating back using the browser's back button.

We are working on diagnosing the root cause and implementing a fix. We appreciate your patience and understanding in this matter.

Thanks



Hello Faizal,

Thanks for the reply.

I found a workaround, until a definitive correct solution is done.

Change in the navbar.component.html

data-kt-menu-trigger="{default: 'click']
to
data-kt-menu-trigger="{default: 'click', lg: 'hover'}"

I added the attribute on hover (mouse) .

Have a nice day.
Best regards,
Paulo


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(