Skip to content

Commit 1534d63

Browse files
committed
fix bug when altering modebar button defaults
1 parent 1d56b19 commit 1534d63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/print.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ as.widget <- function(x, ...) {
4040
list(b = 40, l = 60, t = 25, r = 10),
4141
p$layout$margin %||% list()
4242
)
43-
p$config$modeBarButtonsToRemove <- modifyList(
44-
list("sendDataToCloud"),
45-
p$config$modeBarButtonsToRemove %||% list()
46-
)
43+
p$config$modeBarButtonsToRemove <-
44+
i(p$config$modeBarButtonsToRemove %||% "sendDataToCloud")
4745
p$base_url <- get_domain()
4846
# customize the JSON serializer (for htmlwidgets)
4947
attr(p, 'TOJSON_FUNC') <- to_JSON

0 commit comments

Comments
 (0)