Skip to content

Commit

Permalink
Set input value with priority: 'event' for custom click action example
Browse files Browse the repository at this point in the history
  • Loading branch information
glin committed Apr 18, 2021
1 parent 075fc19 commit 61db2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ reactable(
// Send the click event to Shiny, which will be available in input$show_details
// Note that the row index starts at 0 in JavaScript, so we add 1
if (window.Shiny) {
Shiny.setInputValue('show_details', { index: rowInfo.index + 1 })
Shiny.setInputValue('show_details', { index: rowInfo.index + 1 }, { priority: 'event' })
}
}")
)
Expand Down

0 comments on commit 61db2e0

Please sign in to comment.