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

Clicking on a Separator inside an OptionList throws the cursor to the first option (v0.71.0 only) #4710

Closed
Aljoberg opened this issue Jul 8, 2024 · 2 comments · Fixed by #4712

Comments

@Aljoberg
Copy link

Aljoberg commented Jul 8, 2024

It's as obvious as it sounds. When you click a Separator inside of an OptionList, the selected option becomes the first option. There are also scrolling issues, making the OptionList glitch around.

To reproduce:

  1. Install v0.71.0
  2. Copy the example in https://textual.textualize.io/widgets/option_list/#options-as-option-instances
  3. Run it, select an option that's not first and click the separator.
    Also, if you were to make multiple lines on the Options and select them, the position will glitch around.

Diagnostics:

Textual Diagnostics

Versions

Name Value
Textual 0.71.0
Rich 13.3.5

Python

Name Value
Version 3.10.11
Implementation CPython
Compiler MSC v.1929 64 bit (AMD64)
Executable C:\Users\aljob\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe

Operating System

Name Value
System Windows
Release 10
Version 10.0.23570

Terminal

Name Value
Terminal Application vscode (1.91.0)
TERM Not set
COLORTERM truecolor
FORCE_COLOR Not set
NO_COLOR Not set

Rich Console options

Name Value
size width=202, height=14
legacy_windows False
min_width 1
max_width 202
is_terminal True
encoding utf-8
max_height 14
justify None
overflow None
no_wrap False
highlight None
markup None
height None
Copy link

github-actions bot commented Jul 8, 2024

We found the following entries 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

Copy link

github-actions bot commented Jul 9, 2024

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