Skip to content

Commit 3488b2f

Browse files
committed
changelog
1 parent 73dec80 commit 3488b2f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
## Changed
11+
12+
- Fixed Select not scrolling highlight in to view when clicked https://github.com/Textualize/textual/issues/5255
13+
814
## [0.88.1] - 2024-11-30
915

1016
### Fixed

src/textual/widgets/_option_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ def scroll_to_highlight(self, top: bool = False) -> None:
880880
top: Scroll highlight to top of the list.
881881
"""
882882
highlighted = self.highlighted
883+
883884
if highlighted is None or not self.is_mounted:
884885
return
885886

tests/snapshot_tests/test_snapshots.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,9 +2843,8 @@ def action_add_pane(self) -> None:
28432843
snap_compare(ExampleApp(), press=["a", "r", "a"])
28442844

28452845

2846-
def test_click_expand_select(snap_compare):
2847-
"""Regression test for https://github.com/Textualize/textual/issues/5255
2848-
Should show a select with 15 highlighted."""
2846+
def test_click_expand(snap_compare):
2847+
"""Should show an expanded select with 15 highlighted."""
28492848

28502849
class SelectApp(App):
28512850
def compose(self) -> ComposeResult:

0 commit comments

Comments
 (0)