Skip to content

Commit ab44a18

Browse files
committed
merging a function element gives new
1 parent 3b0bc91 commit ab44a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/theme.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ merge_element.default <- function(new, old) {
799799
# If old is NULL or element_blank, then just return new
800800
return(new)
801801
} else if (is.null(new) || is.character(new) || is.numeric(new) || is.unit(new) ||
802-
is.logical(new)) {
802+
is.logical(new) || is.function(new)) {
803803
# If new is NULL, or a string, numeric vector, unit, or logical, just return it
804804
return(new)
805805
}

0 commit comments

Comments
 (0)