From aa619dc2fbc2fa786e15a8d11444a18863661ed4 Mon Sep 17 00:00:00 2001 From: Oliver Gray <104155026+oliver-gray@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:44:00 +0000 Subject: [PATCH] include boxmode as valid attr (#2396) * include boxmode as valid attr * Update NEWS.md with bug fix for #2476 --- NEWS.md | 1 + R/utils.R | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 27e654f097..6df45bbe93 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,7 @@ ## Bug fixes * Closed #2337: Creating a new `event_data()` handler no longer causes a spurious reactive update of existing `event_data()`s. (#2339) +* Closed #2376: Removes errant boxmode warning for grouped boxplot. (#2396) # 4.10.4 diff --git a/R/utils.R b/R/utils.R index da79d43cf2..b558e12b03 100644 --- a/R/utils.R +++ b/R/utils.R @@ -449,7 +449,7 @@ verify_attr_names <- function(p) { # some layout attributes (e.g., [x-y]axis can have trailing numbers) attrs_name_check( sub("[0-9]+$", "", names(p$x$layout)), - c(names(Schema$layout$layoutAttributes), c("barmode", "bargap", "mapType")), + c(names(Schema$layout$layoutAttributes), c("boxmode", "barmode", "bargap", "mapType")), "layout" ) attrs_name_check(