-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
reset() cannot clear dates #100
Comments
Hi I haven't tried running your code, but to the best of my knowledge, the R-Shiny Consultant On 22 November 2016 at 18:42, Avatoo notifications@github.com wrote:
|
Hi Dean, Thanks for the quick reply. I updated the above example to include Ava |
That's not what the reset function does though. If you look at the documentation for I'm closing this issue since reset does work as it should |
In the example, my original value is empty by setting the The reason for not setting original value to NULL, i.e. today, is that some action may happen in a future date. The user may prefer not to fill in the field for the time being, but come back to edit it when available. P.S. I removed a comment after second edit. Sorry if that led to confuse. |
Oh I understand. I apologize, in that case that really is something that shinyjs::reset should support. |
This should be solved now |
Thanks very much. It works in my production app now. |
I'm writing an app where a few date inputs are required to be reset i.e. being blank after a cancel button. I really like the
shinyjs::reset()
function with which a whole page can go back to default when id takes the id of atabsetPanel. However, it doesn't seem to work with date inputs yet. Date resetting via
updateDateInput()
has been fixed since shiny version 0.14 though.Below is an example adapted from (shiny issue #1317).
The text was updated successfully, but these errors were encountered: