Skip to content

st.data_editor: Copy&Paste from existing records - Row selection issue - Last column missing when using index / first checkbox column for selection #6810

@robingie

Description

@robingie

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

The Copy&Paste-Function for the data_editor leaves the checkbox columns empty when pasting data records. The user would expect that all columns behave the same when duplicating data.

Reproducible Code Example

Open in Streamlit Cloud

No response

Steps To Reproduce

  1. Implement data_editor
  2. Create data_editor with existing records and a Checkbox-Column
  3. Multi-Select records and copy them with STRG-C
  4. Paste data in a new row STRG-V
  5. Checkbox columns don't show any data

Expected Behavior

The copied and pasted data are the same.

Current Behavior

No response

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version:
  • Python version:
  • Operating System:
  • Browser:
  • Virtual environment:

Additional Information

No response

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.data_editorRelated to the `st.data_editor` widgetfeature:st.dataframeRelated to the `st.dataframe` elementpriority:P3Medium prioritystatus:confirmedBug has been confirmed by the Streamlit teamtype: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