Skip to content

Commit

Permalink
Temporary workaround for JS() not working since htmlwidgets 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
glin committed Nov 24, 2023
1 parent 3065f99 commit 1d60ea6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
methods in the JavaScript API to change the current page or set the current page size.
([#322](https://github.com/glin/reactable/issues/322))

## Minor improvements and bug fixes

* Fixed `JS()` not working when `htmlwidgets` 1.6.3 or later is installed. ([#348](https://github.com/glin/reactable/issues/348))

# reactable 0.4.4

[Documentation - reactable 0.4.4](https://v0-4-4--reactable-docs.netlify.app/)
Expand Down
3 changes: 3 additions & 0 deletions R/reactable.R
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,9 @@ reactable <- function(
serverMaxRowCount = serverMaxRowCount
))

# Temporary workaround for JS() not working in htmlwidgets 1.6.3
class(component) <- c(class(component), "list")

htmlwidgets::createWidget(
name = "reactable",
reactR::reactMarkup(component),
Expand Down

0 comments on commit 1d60ea6

Please sign in to comment.