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

ListView.remove_items() removes all items #4735

Closed
TomJGooding opened this issue Jul 14, 2024 · 1 comment · Fixed by #4736
Closed

ListView.remove_items() removes all items #4735

TomJGooding opened this issue Jul 14, 2024 · 1 comment · Fixed by #4736

Comments

@TomJGooding
Copy link
Contributor

Thanks @jkoelker for reporting this in #4708 (comment)!

I believe this changes the behavior of this functions to removing all ListItems instead of the ones at the specific indices.

for index in indices:
items_to_remove.append(items[index])
await_remove = items.remove()
return await_remove

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

Successfully merging a pull request may close this issue.

1 participant