creativetimofficial / argon-dashboard

Argon - Dashboard for Bootstrap 5 by Creative Tim
https://www.creative-tim.com/product/argon-dashboard
MIT License
664 stars 1.23k forks source link

Navbar with delay - 3 clicks to close #39

Closed carlospetrucio closed 4 years ago

carlospetrucio commented 4 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Navigating to the right when in mobile or responsive mode does not close quickly, I click once on the icon and the menu opens, after that it is necessary at least 3 clicks for the menu to return to the initial state.

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1 - Access in responsive mode
  2. step 2 - Click on the icon to open the menu
  3. step 3 - At this moment when clicking only once to close, following the same to open it does not close the menu, being necessary to repeat the action 3 times...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here.

carlospetrucio commented 4 years ago

Yes the navbar opens but does not close on any mobile, and when it closes it takes 3 clicks.

rarestoma commented 4 years ago

Hi @carlospetrucio,

Thank you for working with our products and for pointing us this issue.

Please remove the following lines of code from the argon.js:

case 'sidenav-pin': pinSidenav(); break; case 'sidenav-unpin': unpinSidenav(); break;

You find it in switch(action) function from line 94 to line 100.

Please let me know if everything works properly now.

All the best, Rares

carlospetrucio commented 4 years ago

Ok, thanks.

carlospetrucio commented 4 years ago

After accessing my "argon.js" file and removing case 'sidenav-pin': pinSidenav (); break; case 'sidenav-unpin': unpinSidenav (); break;

Now solved, without delay when opening menu.