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

fix(navbar): on Mobile Screen Navbar remains open even page is changed #1247

Merged

Conversation

dhavalveera
Copy link
Contributor

When we go to the Mobile Screen and when we click on Navbar, it opens the Collapse, and when we click on any of the Link and it get redirected to another page, but Navbar Collapse isn't getting closed, it was only getting closed from Navbar Toggle nowhere else.

This fix is adding the onClick event to NavbarCollapse so whenever we click on the Link, it is closing the navbar.

Current:
image

Fixed:
image

Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2024 11:32am

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7461173) 99.54% compared to head (5ea5f12) 97.35%.
Report is 194 commits behind head on main.

❗ Current head 5ea5f12 differs from pull request most recent head cb6cfc4. Consider uploading reports for the commit cb6cfc4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1247      +/-   ##
==========================================
- Coverage   99.54%   97.35%   -2.20%     
==========================================
  Files         163      216      +53     
  Lines        6621     9224    +2603     
  Branches      401      538     +137     
==========================================
+ Hits         6591     8980    +2389     
- Misses         30      244     +214     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/components/Navbar/NavbarLink.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@nigellima nigellima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dhavalveera
Copy link
Contributor Author

what is LGTM @nigellima ?

@nigellima
Copy link
Collaborator

what is LGTM @nigellima ?

Looks Good To Me 😄

@dhavalveera
Copy link
Contributor Author

what is LGTM @nigellima ?

Looks Good To Me 😄

Understood!.. can you please approve the review again, please @nigellima

@dhavalveera
Copy link
Contributor Author

@SutuSebastian can you please review the PR, and approve?

Copy link
Contributor Author

@dhavalveera dhavalveera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made the changes @SutuSebastian

Copy link
Collaborator

@SutuSebastian SutuSebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good now

@SutuSebastian SutuSebastian force-pushed the fix/navbar-open-after-page-change branch from b36a60e to cb6cfc4 Compare February 5, 2024 11:30
@dhavalveera
Copy link
Contributor Author

@SutuSebastian , can you please help regarding the CI / build (pull_request) is getting failed now..

@SutuSebastian
Copy link
Collaborator

@SutuSebastian , can you please help regarding the CI / build (pull_request) is getting failed now..

its just codecov going nuts again...

@dhavalveera
Copy link
Contributor Author

@SutuSebastian , can you please help regarding the CI / build (pull_request) is getting failed now..

its just codecov going nuts again...

Understood!.. I don't have to worry about it, right sir @SutuSebastian ?

so I guess this PR had to be merge manually, if I am not wrong due to this check fail due to Codecov

@SutuSebastian
Copy link
Collaborator

@SutuSebastian , can you please help regarding the CI / build (pull_request) is getting failed now..

its just codecov going nuts again...

Understood!.. I don't have to worry about it, right sir @SutuSebastian ?

so I guess this PR had to be merge manually, if I am not wrong due to this check fail due to Codecov

no, nothing from ur side, i'll merge it anyway, small changes

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

Successfully merging this pull request may close these issues.

None yet

3 participants