Skip to content

Disabling one checkbox disables the following checkboxes but not their output #407

@luiscruz

Description

@luiscruz

Summary

When disabling checkboxes, succeeding checkboxes present a weird behaviour: They are disabled but their output acts as if they were enabled. This is not the same but it is related to #386

Steps to reproduce

The issue can be reproduced using this checkbox-snip:

if st.checkbox("Checkbox1"):
    st.markdown("This is a cool feature that does this....")
if st.checkbox("Checkbox2"):
    st.markdown("This is a cool feature that does this....")

The output looks like this:

image


  1. Enable Checkbox1

image


  1. Enable Checkbox2

image


  1. Disable Checkbox1

image


Expected behavior:

After step 3 I would expect the checkbox2 to be A) completely disabled or B) left enabled:

A)

image


B)

image

Actual behavior:

Explained above.

Is this a regression?

dunno

Debug info

  • Streamlit version: 0.47.4
  • Python version: 3.7.4
  • OS version: 10.14.6
  • Browser version: 12.1.2

Additional information

na

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:stateRelated to state managementtype: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