input_slider
does not throw an error when value
is function
#979
Labels
input_slider
does not throw an error when value
is function
#979
When slider's value is set to be
max
function as below,ui.input_slider("n", "N", min=0, max=100, value=max)
it does not throw an error but it create slider with initial value
0
.The followings also behave the same; they create slider with initial value
0
and do not throw errors.ui.input_slider("n", "N", min=0, max=100, value="max")
ui.input_slider("n", "N", min=0, max=100, value=sum)
ui.input_slider("n", "N", min=0, max=100, value=min)
I think that more strict type checking for the value of
input_slider()
that throw error in above cases will help developers debug apps.Below is a complete app to reproduce the example that I described above.
The text was updated successfully, but these errors were encountered: