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

Fixed render example #20

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Fixed render example #20

merged 2 commits into from
Sep 27, 2024

Conversation

timrach
Copy link
Contributor

@timrach timrach commented Sep 26, 2024

This Pullrequest fixes two issuse in the 'render' example:

  1. When trying out the example, I noticed that route handling in main.go was assigned to the http module instead of the mux object, which resulted in 404 responses for me for all routes.

  2. Clicking the space between the 'Home' and 'Child' links in the sidebar results in the parent container receiving the bg-blue-500 class, breaking the highlighting system for subsequent clicks.
    Moving the hyperscript snippet to the link item fixed this.

Before, clicking the space between links (the parent container) broke the highlighting
@donseba
Copy link
Owner

donseba commented Sep 27, 2024

thanks ! much appreciated

@donseba donseba merged commit 200e233 into donseba:main Sep 27, 2024
1 check passed
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.

2 participants