Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Simplify sidebar getValue input binding method #624

Merged
merged 12 commits into from
Jun 16, 2023

Conversation

gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Jun 9, 2023

Small follow up to #603 to simplify the getValue() method of the sidebar input binding.

See conversation in #603 (comment)

This also fixes #636 by updating the events emitted when the sidebar state is finalized by triggering {shown|hidden}.sendOutputHiddenState jquery events on the sidebar.

While here, I also added a browser-native event. In the future, we could use this browser event to separate all uses of jQuery from the Sidebar class, so that we could progressively enhance the sidebar in the presence of Shiny (and jQuery). That's left for a future PR, but this change puts us in a better spot for that update.

@gadenbuie gadenbuie requested a review from schloerke June 15, 2023 19:49
@gadenbuie gadenbuie merged commit 3ada183 into main Jun 16, 2023
@gadenbuie gadenbuie deleted the sidebar/minor-js-refactor branch June 16, 2023 14:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reactives in sidebar never trigger if sidebar starts closed
2 participants