Skip to content

Commit fed2017

Browse files
committed
add a comment
1 parent cbcd9de commit fed2017

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/utils.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,8 @@ verify_attr <- function(proposed, schema, layoutAttr = FALSE) {
488488
}
489489

490490
# tag 'src-able' attributes (needed for api_create())
491+
# note that layout has 'src-able' attributes that shouldn't
492+
# be turned into grids https://github.com/ropensci/plotly/pull/1489
491493
isSrcAble <- !is.null(schema[[paste0(attr, "src")]]) && length(proposed[[attr]]) > 1
492494
if ((isDataArray || isSrcAble) && !isTRUE(layoutAttr)) {
493495
proposed[[attr]] <- structure(proposed[[attr]], apiSrc = TRUE)

0 commit comments

Comments
 (0)