Skip to content

Commit

Permalink
fix(examples): Don't repeat caption ID (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Nov 7, 2024
1 parent 61d204e commit 20e4d72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/r/003-reactivity/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ui <- page_sidebar(
# Note: Changes made to the caption in the textInput control
# are updated in the output area immediately as you type
textInput(
inputId = "caption",
inputId = "caption_text",
label = "Caption:",
value = "Data Summary"
),
Expand Down Expand Up @@ -72,10 +72,10 @@ server <- function(input, output) {
# 2. New caption is pushed back to the browser for re-display
#
# Note that because the data-oriented reactive expressions
# below don't depend on input$caption, those expressions are
# NOT called when input$caption changes
# below don't depend on input$caption_text, those expressions are
# NOT called when input$caption_text changes
output$caption <- renderText({
input$caption
input$caption_text
})

# Generate a summary of the dataset ----
Expand Down

0 comments on commit 20e4d72

Please sign in to comment.