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

fix(option list): fix clicking separator changing selected option #4712

Conversation

TomJGooding
Copy link
Contributor

@TomJGooding TomJGooding commented Jul 9, 2024

Fixes #4710. The recent overhaul of the OptionList inadvertently also adds the option meta data to the Separator lines.

I'm starting to wonder if this data structure might need re-evaluating (see #4709), so also leaving this PR as a draft for now.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@willmcgugan willmcgugan marked this pull request as ready for review July 9, 2024 10:58
@willmcgugan
Copy link
Collaborator

Thanks, Tom

@willmcgugan willmcgugan merged commit 056a19f into Textualize:main Jul 9, 2024
20 checks passed
@TomJGooding
Copy link
Contributor Author

No problem, I see you went with a slightly different approach anyway!

Sorry I hadn't updated the changelog while my PRs were still in drafts, so you might want to add those before the next release.

@TomJGooding TomJGooding deleted the fix-option-list-fix-clicking-separator-changing-selected-option branch July 11, 2024 12:44
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 this pull request may close these issues.

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