Skip to content

Conversation

@reakaleek
Copy link
Member

@reakaleek reakaleek commented Feb 18, 2025

Context

There is a chance that navigation items have the same slug. Since the slug is used to identify the input checkbox, the wrong navigation group gets opened/closed.

Changes

  • Use a UUID for the input id
  • Add pointer-events-none to avoid opening the group. (The group is visually opened twice, before the page is loaded and after the page is loaded)

@reakaleek reakaleek self-assigned this Feb 18, 2025
@reakaleek reakaleek requested a review from a team February 18, 2025 08:47
@reakaleek reakaleek marked this pull request as ready for review February 18, 2025 08:47
@reakaleek reakaleek added the fix label Feb 18, 2025
@reakaleek
Copy link
Member Author

@Mpdreamz maybe we can try something like https://github.com/Cysharp/Ulid, which seems to be faster in generating ids.

WDYT?

@Mpdreamz
Copy link
Member

I don't think we generate UUID's at a rate which will require ULID, I'm also eager to start caching the whole navigation generation.

@reakaleek reakaleek merged commit 3f8a468 into main Feb 18, 2025
6 of 7 checks passed
@reakaleek reakaleek deleted the feature/fix-pages-nav branch February 18, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants