Skip to content

Commit b7d38c0

Browse files
committed
Revert "Pass data to use_defaults() method (this way GeomSf default aes logic will actually work as expected)"
This reverts commit 01e73fb.
1 parent 0507b76 commit b7d38c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layers2traces.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ aes2plotly <- function(data, params, aes = "size") {
11121112
# ggfun() returns a function because ggplot2 now
11131113
# defines data.frame in it's namespace
11141114
# https://github.com/ropensci/plotly/pull/1481
1115-
if ("default_aes" %in% names(geom_obj)) geom_obj$use_defaults(data) else NULL
1115+
if ("default_aes" %in% names(geom_obj)) geom_obj$use_defaults(NULL) else NULL
11161116
}
11171117
vals <- defaults[[aes]]
11181118
}

0 commit comments

Comments
 (0)