title: updateAutonumericInput not changing input values in Shiny application
body: <p>I had to use <code>autoNumericInput</code> from the <code>shinyWidgets</code> library to properly format my input fields. I noticed that the <code>updateAutoNumericInput</code> functions in my <code>observe({...})</code> reactive is not behaving the same way as <code>updateNumericInput</code> from the base <code>shiny</code> library. The user input fails to change into my desired output. Check inputs with IDs <code>gf</code> and <code>ba</code> in the code below.</p>
  <p>A somewhat working version of my application: <a href="https://zakinzahid.shinyapps.io/loan-repayment-schedule-generator-v2/" rel="nofollow noreferrer">https://zakinzahid.shinyapps.io/loan-repayment-schedule-generator-v2/</a></p>
  <p>Try doing the following:</p>
  <ul>
  <li>Set &quot;Do you want to arrange for a variable payment scheme?&quot; to &quot;Yes&quot;</li>
  <li>Set &quot;Annual Growth Rate&quot; to 5%</li>
  <li>Set &quot;Do you want to arrange for a variable payment scheme?&quot; to &quot;No&quot;</li>
  <li>Set &quot;Do you want to arrange for a variable payment scheme?&quot; to &quot;Yes&quot; again</li>
  </ul>
  <p>The &quot;Annual Growth Rate&quot; should still have the value 5%. I need it to be 0%. Any help would be appreciated. Thanks!</p>
  <p>Inputs are in the side panel as below:</p>
  <pre><code>            airDatepickerInput(inputId = &quot;d&quot;,
                                 label = &quot;When are you planning on taking out the loan?&quot;,
                                 value = ceiling_date(x = Sys.Date(), unit = &quot;month&quot;),
                                 minDate = ceiling_date(x = Sys.Date(), unit = &quot;month&quot;),
                                 view = &quot;months&quot;, 
                                 minView = &quot;months&quot;,
                                 monthsField = &quot;months&quot;,
                                 dateFormat = &quot;MM, yyyy&quot;),
              autonumericInput(inputId = &quot;l&quot;,
                               label = &quot;Loan Amount:&quot;,
                               minimumValue = 1,
                               value = 2000000,
                               align = &quot;left&quot;,
                               decimalPlaces = 2,
                               digitGroupSeparator = &quot;,&quot;,
                               decimalCharacter = &quot;.&quot;),
              autonumericInput(inputId = &quot;i&quot;,
                               label = &quot;Annual Interest Rate:&quot;,
                               minimumValue = -100,
                               maximumValue = 100,
                               value = 10,
                               align = &quot;left&quot;,
                               decimalPlaces = 2,
                               currencySymbol = &quot; %&quot;,
                               currencySymbolPlacement = &quot;s&quot;,
                               decimalCharacter = &quot;.&quot;),
              sliderInput(inputId = &quot;rp&quot;,
                          label = &quot;Repayment Period (in years):&quot;,
                          min = 1,
                          max = 40,
                          value = 20,
                          step = 1,
                          ticks = F),
              sliderInput(inputId = &quot;gp&quot;,
                          label = &quot;Grace Period (in years):&quot;,
                          min = 0,
                          max = 39,
                          value = 2,
                          step = 1,
                          ticks = F),
              selectInput(inputId = &quot;f&quot;,
                          label = &quot;Frequency of Installments:&quot;,
                          choices = list(&quot;Annual&quot;,
                                         &quot;Biannual&quot;,
                                         &quot;Quarterly&quot;,
                                         &quot;Monthly&quot;),
                          selected = list(&quot;Monthly&quot;)),
              conditionalPanel(condition = &quot;input.gp != 0&quot;,
                               radioButtons(inputId = &quot;gpi&quot;,
                                            label = &quot;Will you be paying interest accrued during the grace period?&quot;,
                                            choices = list(&quot;Yes&quot;,
                                                           &quot;No&quot;),
                                            selected = list(&quot;Yes&quot;),
                                            inline = T)),
              radioButtons(inputId = &quot;g&quot;,
                           label = &quot;Do you want to arrange for a variable payment scheme?&quot;,
                           choices = list(&quot;Yes&quot;,
                                          &quot;No&quot;),
                           selected = list(&quot;No&quot;),
                           inline = T),
              conditionalPanel(condition = &quot;input.g == 'Yes' &amp;&amp; input.f != 'Annual'&quot;,
                               radioButtons(inputId = &quot;gt&quot;,
                                            label = &quot;Do you want to maintain level payments within each individual year?&quot;,
                                            choices = list(&quot;Yes&quot; = &quot;step&quot;,
                                                           &quot;No&quot; = &quot;continuous&quot;),
                                            selected = list(&quot;Yes&quot; = &quot;step&quot;),
                                            inline = T)),
              conditionalPanel(condition = &quot;input.g == 'Yes'&quot;,
                               autonumericInput(inputId = &quot;gf&quot;,
                                                label = &quot;Annual Growth Rate:&quot;,
                                                minimumValue = -100,
                                                maximumValue = 100,
                                                value = 0,
                                                align = &quot;left&quot;,
                                                decimalPlaces = 2,
                                                currencySymbol = &quot; %&quot;,
                                                currencySymbolPlacement = &quot;s&quot;,
                                                decimalCharacter = &quot;.&quot;)),
              radioButtons(inputId = &quot;b&quot;,
                           label = &quot;Are you expecting to make a fixed balloon/drop payment?&quot;,
                           choices = list(&quot;Yes&quot;,
                                          &quot;No&quot;),
                           selected = list(&quot;No&quot;),
                           inline = T),
              conditionalPanel(condition = &quot;input.b == 'Yes'&quot;,
                               autonumericInput(inputId = &quot;ba&quot;,
                                                label = &quot;Balloon/Drop Payment Amount:&quot;,
                                                minimumValue = 0,
                                                maximumValue = 2000000*(1.1)^20,
                                                value = 0,
                                                align = &quot;left&quot;,
                                                decimalPlaces = 2,
                                                digitGroupSeparator = &quot;,&quot;,
                                                decimalCharacter = &quot;.&quot;)),
              actionButton(inputId = &quot;calc&quot;,
                           label = &quot;Generate Schedule&quot;, width = &quot;100%&quot;)
  
  </code></pre>
  <p>I tried to update the values inside of the server variable as below:</p>
  <pre><code>    observe({
          
          # Update grace period input parameters
          updateSliderInput(session = session,
                            inputId = &quot;gp&quot;,
                            max = min(input$rp - 1, 5))
          
          # Update balloon payment amount input parameters
          updateAutonumericInput(session = session,
                            inputId = &quot;ba&quot;,
                            options = list(maximumValue = input$l*(1+input$i)^input$rp))
          
          # Update year input parameters
          updateSliderInput(session = session,
                            inputId = &quot;y&quot;,
                            min = ifelse(booleanConvert(input$gpi),
                                         1,
                                         input$gp + 1),
                            max = input$rp)
          
          # Update growth factor
          if (input$g == &quot;No&quot;) updateAutonumericInput(session = session, inputId = &quot;gf&quot;, value = 0)
          
          # Update amount of balloon payment
          if (input$b == &quot;No&quot;) updateAutonumericInput(session = session, inputId = &quot;ba&quot;, value = 0)
          
          # Update grace period interest payment boolean
          if (input$gp == 0) updateRadioButtons(session = session, inputId = &quot;gpi&quot;, selected = list(&quot;No&quot;))
          
          # Hide all tabs in the beginning
          if (input$calc == 0) {
              
              hideTab(inputId = &quot;Main&quot;, 
                      target = &quot;Annual Overview&quot;)
              hideTab(inputId = &quot;Main&quot;, 
                      target = &quot;Monthly Breakdown&quot;)
              
          } else {
              
              showTab(inputId = &quot;Main&quot;, 
                      target = &quot;Annual Overview&quot;)
              showTab(inputId = &quot;Main&quot;, 
                      target = &quot;Monthly Breakdown&quot;)
              
              # Hide annual breakdown tab
              if (input$f == &quot;Annual&quot;) {
                  
                  hideTab(inputId = &quot;Main&quot;, 
                          target = &quot;Monthly Breakdown&quot;)
                  
              } else {
                  
                  showTab(inputId = &quot;Main&quot;, 
                          target = &quot;Monthly Breakdown&quot;)
                  
              }
              
          }
          
      })
  </code></pre>
  <p>PS: First time writing code for a Shiny application. Really sorry if the code is messy and not exactly in line with common practice.</p>