Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only ignore hiding required columns in dynamic mode #7996

Merged
merged 4 commits into from Jan 22, 2024

Conversation

LukasMasuch
Copy link
Collaborator

@LukasMasuch LukasMasuch commented Jan 22, 2024

Describe your changes

In a previous PR (#7888) we enforce required columns to be shown if if configured as hidden. However, doing this is only useful for the dynamic editing mode where users have to fill in these cells when adding new rows. This PR only applies this logic to data editor usage with num_rows=dynamic

GitHub Issue Link (if applicable)

Closes #7991

Testing Plan

  • Added unit tests

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@LukasMasuch LukasMasuch merged commit 1cbe032 into develop Jan 22, 2024
40 checks passed
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
* Only ignore hiding required columns in dynamic mode

* Add test

* Update test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

st.data_editor hide_index argument losses its effect when subset dataframe
2 participants