cmkimber / Elections_Ontario_App

Webapp to explore Elections Ontario data
0 stars 0 forks source link

pane 3 radio button selected resets to Seats when percentage checkbox altered #15

Open cmkimber opened 2 months ago

cmkimber commented 2 months ago

The default selection for the radioButtons with ID input$seats_ballots is "Seats". When the checkboxInput with ID input$percentage is triggered, an observeEvent changes the choices argument using updateRadioButtons. When 'updateRadioButtons is invoked, it resets the selection to the default "Seats".

The desired behaviour is keep the selected radio button when the checkbox is triggered. This will likely require saving the state of the selected radio button as a reactive.