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: toggle_sidebar() can once again directly close a sidebar #1043

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Apr 22, 2024

Fixes #1042

When we refactored toggle_sidebar() to use sidebar_open_as_string(), this inadvertently changed the method sent to the sidebar toggle message handler from "close" to "closed".

Since we already do some disambiguation between "close"/"closed" and "open"/"opened" in the JavaScript, I updated the toggle message handler to treat "closed" and "close" as the same message.

@gadenbuie gadenbuie changed the title Fix/sidebar-toggle-close fix: toggle_sidebar() can once again directly close a sidebar Apr 22, 2024
@gadenbuie gadenbuie merged commit 45e063d into main Apr 22, 2024
1 check passed
@gadenbuie gadenbuie deleted the fix/sidebar-toggle-close branch April 22, 2024 18:53
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.

sidebar_toggle doesn't close a sidebar
2 participants