Skip to content

st.slider output value does not reset #114

@monchier

Description

@monchier

How to repro

  1. Run this script with streamlit
import streamlit as st

end = int(st.sidebar.text_input('Input:', '10'))
slider_output =  st.sidebar.slider('slider', 0, end, 0)
st.write(selected_frame_index)
  1. This is how it shows in the browser

Screen Shot 2019-09-16 at 11 29 15 AM

  1. Change the input to 10 and move the slider all the way to the right. The number 10 should appear in the main column

Screen Shot 2019-09-16 at 11 29 22 AM

  1. Change the input value back to 1

Screen Shot 2019-09-16 at 11 29 29 AM

What happens

The value in the main column is 10

What should happen:

The value in the main column should not be 10, but it should be within the bounds of the slider

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions