Skip to content

Commit de622a0

Browse files
committed
fix scoping
1 parent bbd2758 commit de622a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plotly_build.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ coerce_attr_defaults <- function(trace, layout) {
10301030
# As of v1.46.1, paper_bgcolor defaults to '#fff' which
10311031
# col2rgb() can't parse, but expands to '#ffffff'
10321032
# https://stackoverflow.com/a/2899224/1583084
1033-
bgcolor <- p$x$layout$paper_bgcolor %||% "#ffffff"
1033+
bgcolor <- layout$paper_bgcolor %||% "#ffffff"
10341034
trace$stroke <- trace[["stroke"]] %||% default(I(bgcolor))
10351035
}
10361036
trace

0 commit comments

Comments
 (0)