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

Multi-container bugs with duplicated items #7

Open
rtonoue opened this issue Feb 7, 2023 · 0 comments
Open

Multi-container bugs with duplicated items #7

rtonoue opened this issue Feb 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rtonoue
Copy link

rtonoue commented Feb 7, 2023

Abstract

If there is duplicated items in multi-container, moving item results in breaking widget layout as below.

In this example, items named "C" are duplicated.

2023-02-07.11-49-35.mp4

Reproducible code

import streamlit as st
from streamlit_sortables import sort_items

original_items = [
    {'header': 'first container',  'items': ['A', 'B', 'C', "C"]},
    {'header': 'second container', 'items': ['D', 'E', 'F']}
]

sorted_items = sort_items(original_items, multi_containers=True)

st.write(f'original_items: {original_items}')
st.write(f'sorted_items: {sorted_items}')
@ohtaman ohtaman added the bug Something isn't working label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants