Skip to content

feat!(submitButton): don't treat any HTML type='submit' button/input like a submitButton()#4209

Merged
cpsievert merged 6 commits intomainfrom
shiny-submit-button
May 1, 2025
Merged

feat!(submitButton): don't treat any HTML type='submit' button/input like a submitButton()#4209
cpsievert merged 6 commits intomainfrom
shiny-submit-button

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Apr 25, 2025

This change is needed for rstudio/bslib#1204, which proposes a more fully featured input_submit_button(), as well as a input_submit_textarea(). In both cases, it will be nice (if not necessary) to include type="submit" on the buttons. Unfortunately, that means that shiny.js will suspend all inputs until submit, which is not what we want.

Technically this is a breaking change, but there is guidance in the NEWS for back-compat if someone happens to be relying on the current behavior.

Closes posit-dev/py-shiny#1770

@cpsievert cpsievert requested a review from Copilot April 25, 2025 22:50

This comment was marked as off-topic.

@cpsievert cpsievert added this to the Next Release milestone Apr 25, 2025
@cpsievert cpsievert merged commit ca41c08 into main May 1, 2025
1 check passed
@cpsievert cpsievert deleted the shiny-submit-button branch May 1, 2025 17:37
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.

Unable to build form with submit button from HTML

2 participants