From 33c829269046c02449f9e3754ccf0facd292f8bb Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Thu, 21 Oct 2021 16:10:46 +0200 Subject: [PATCH] Fix disabling of method sliders --- R/methods.R | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/R/methods.R b/R/methods.R index fb49fd0..1f6f143 100644 --- a/R/methods.R +++ b/R/methods.R @@ -79,9 +79,7 @@ methods_server <- function(id, analysis) { # Observe each method's enable button and synchronise the slider state. lapply(methods, function(method) { observeEvent(input[[method$id]], { - shinyjs::toggleState( - session$ns(sprintf("%s_weight", method$id)) - ) + shinyjs::toggleState(sprintf("%s_weight", method$id)) }, ignoreInit = TRUE) })