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

Disable downloadLink()/downloadButton() until their href is ready #4041

Merged
merged 2 commits into from
May 6, 2024

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented May 3, 2024

Closes #2614
Closes #3606

For reference https://getbootstrap.com/docs/5.3/components/buttons/#disabled-state

I've also tested this with Bootstrap 3 and it appears to work there as well.

TODO

  • Do a PR for py-shiny with corresponding markup changes

@cpsievert cpsievert force-pushed the download-disable-until-ready branch from ce2c93b to 75cbb5e Compare May 3, 2024 20:49
@cpsievert cpsievert requested a review from gadenbuie May 3, 2024 20:50
@cpsievert cpsievert marked this pull request as ready for review May 3, 2024 20:50
Copy link
Member

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

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

I haven't run the code, but I have read it carefully. It looks like very elegant fix to the problem! I'm glad to see this one getting fixed :)

@cpsievert cpsievert merged commit ecb591f into main May 6, 2024
12 checks passed
@cpsievert cpsievert deleted the download-disable-until-ready branch May 6, 2024 14:37
cpsievert added a commit to posit-dev/py-shiny that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants