You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loadingButton is recreated with the same ID, corresponding input value is not reset until the button is clicked for the first time. This behaviour differs from the built-in actionButton, where value is immediately set to 0. Simple demonstration, using the latest dev version, below.
I believe that loadingButton should behave the same as actionButton in this matter. loadingButton initial value is null, not 0, but this is not important - what is important is that value should be reset to default immediately. Actually the fix should be as simple as calling Shiny.setInputValue somewhere during the initialisation. I've already created PR with suggested change: #68, but I'm not sure whether it is the best place to do it.
When
loadingButton
is recreated with the same ID, correspondinginput
value is not reset until the button is clicked for the first time. This behaviour differs from the built-inactionButton
, where value is immediately set to 0. Simple demonstration, using the latest dev version, below.I believe that
loadingButton
should behave the same asactionButton
in this matter.loadingButton
initial value isnull
, not0
, but this is not important - what is important is that value should be reset to default immediately. Actually the fix should be as simple as callingShiny.setInputValue
somewhere during the initialisation. I've already created PR with suggested change: #68, but I'm not sure whether it is the best place to do it.The text was updated successfully, but these errors were encountered: