Skip to content

fix(clerk-js): Disable scroll to top for OrganizationProfile navbar#500

Merged
nikosdouvlis merged 1 commit into
mainfrom
navbar_bug
Nov 4, 2022
Merged

fix(clerk-js): Disable scroll to top for OrganizationProfile navbar#500
nikosdouvlis merged 1 commit into
mainfrom
navbar_bug

Conversation

@desiprisg
Copy link
Copy Markdown
Contributor

@desiprisg desiprisg commented Nov 3, 2022

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/clerk-expo
  • @clerk/backend-core
  • @clerk/clerk-sdk-node
  • @clerk/edge
  • build/tooling/chore

Description

  • npm test runs as expected.
  • npm run build runs as expected.

Clicking the navbar tabs causes the page to scroll to the active element's id. This is unnecessary in the OrganizationProfile. We can remove the ids for these elements to avoid the scroll behaviour.

@desiprisg desiprisg marked this pull request as draft November 3, 2022 23:26
@desiprisg
Copy link
Copy Markdown
Contributor Author

@nikosdouvlis You're right. I thought we needed those for the styling of the active tab as well, but it seems I misunderstood. Will simplify and we can merge.

@desiprisg desiprisg changed the title fix(clerk-js): Disable scroll to top for OrganizationProfile navbar & correctly show active tab fix(clerk-js): Disable scroll to top for OrganizationProfile navbar Nov 4, 2022
@desiprisg desiprisg marked this pull request as ready for review November 4, 2022 13:48
Copy link
Copy Markdown
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

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

Nice!

@nikosdouvlis nikosdouvlis merged commit 915d8f6 into main Nov 4, 2022
@nikosdouvlis nikosdouvlis deleted the navbar_bug branch November 4, 2022 16:11
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants