Skip to content

Commit f35e2f5

Browse files
committed
only throw clickmode warning when crosstalk on event is a click
1 parent b4c0c12 commit f35e2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ verify_key_type <- function(p) {
723723
for (i in seq_along(keys)) {
724724
k <- keys[[i]]
725725
if (is.null(k)) next
726-
if (identical(p$x$layout$clickmode, "select")) {
726+
if ("select" %in% p$x$layout$clickmode && "plotly_click" %in% p$x$highlight$on) {
727727
warning(
728728
"`layout.clickmode` = 'select' is not designed to work well with ",
729729
"the R package's linking framework (i.e. crosstalk support).",

0 commit comments

Comments
 (0)