mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 11:17:24 +01:00
Fix disabling of method sliders
This commit is contained in:
parent
40cb8e6cbd
commit
33c8292690
1 changed files with 1 additions and 3 deletions
|
|
@ -79,9 +79,7 @@ methods_server <- function(id, analysis) {
|
||||||
# Observe each method's enable button and synchronise the slider state.
|
# Observe each method's enable button and synchronise the slider state.
|
||||||
lapply(methods, function(method) {
|
lapply(methods, function(method) {
|
||||||
observeEvent(input[[method$id]], {
|
observeEvent(input[[method$id]], {
|
||||||
shinyjs::toggleState(
|
shinyjs::toggleState(sprintf("%s_weight", method$id))
|
||||||
session$ns(sprintf("%s_weight", method$id))
|
|
||||||
)
|
|
||||||
}, ignoreInit = TRUE)
|
}, ignoreInit = TRUE)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue