We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a SelectionList item is too long and starts wrapping text to new lines the indexing breaks, as the logic considers new lines as new items.
SelectionList
from textual.app import App, ComposeResult from textual.containers import Container from textual.widgets import SelectionList class BugReportApp(App): CSS = """ #main { padding: 5; } """ def compose(self) -> ComposeResult: with Container(id="main"): yield SelectionList( ( "adawdawawfawffffffffffffffffffffffffffffffffffffffffffffffffffffffawdwadddddddddddddddddddddddddddddddddddddddddddddddddddddd", 0, ), ) if __name__ == "__main__": app = BugReportApp() app.run()
The text was updated successfully, but these errors were encountered:
We found the following entry in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Successfully merging a pull request may close this issue.
Description
When a
SelectionList
item is too long and starts wrapping text to new lines the indexing breaks, as the logic considers new lines as new items.Video
selection_bug.webm
MRE
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: