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
{{ message }}
Repository navigation
[Bug]: App crashes when trying to sort by multiple columns (Shift+click) #70
I agree to follow this project's Contributing Guidelines.
Project Version
No response
Platform and OS Version
No response
Existing Issues
No response
What happened?
When using reactable.extras in a Shiny app, sorting by a single column in UI works correctly. However, when attempting to sort by multiple columns using Shift-click, the app throws the following error:
Warning: Error in rlang::sym: Can't convert a character vector to a symbol.
55: <Anonymous>
54: signalCondition
53: signal_abort
52: abort
51: abort_coercion
50: rlang::sym
49: ::
shiny
observe
48: <observer>
1: runApp
Steps to reproduce
Run a Shiny app with reactable_extras_server displaying any simple data frame.
Click on a column header (e.g., column1) to sort.
Hold the Shift key and click on a second column header (e.g., column2) to add it to the sort.
The app immediately crashes with: Error in rlang::sym: Can't convert a character vector to a symbol.
Using defaultSorted with multiple columns:
In your reactable_extras_server call, add: defaultSorted = list("column1" = "desc", "column2" = "desc")
Run the Shiny app.
The app immediately crashes on startup with: Error in rlang::sym: Can't convert a character vector to a symbol.
Expected behavior
Shift-clicking to sort by multiple columns should work as it does in reactable, allowing the table to sort by multiple columns without errors.
The same error occurs when defining the reactable parameter defaultSorted with more than one column, for example: defaultSorted = list("column1" = "desc", "column2" = "desc")
This setup immediately triggers the same rlang::sym error on app startup.
Activity