File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
77
8+
9+ ## [ 0.53.1] - 2023-03-18
10+
11+ ### Fixed
12+
13+ - Fixed issue with data binding
14+
815## [ 0.53.0] - 2023-03-18
916
1017### Added
@@ -1781,6 +1788,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
17811788- New handler system for messages that doesn't require inheritance
17821789- Improved traceback handling
17831790
1791+ [ 0.53.1 ] : https://github.com/Textualize/textual/compare/v0.53.0...v0.53.1
17841792[ 0.53.0 ] : https://github.com/Textualize/textual/compare/v0.52.1...v0.53.0
17851793[ 0.52.1 ] : https://github.com/Textualize/textual/compare/v0.52.0...v0.52.1
17861794[ 0.52.0 ] : https://github.com/Textualize/textual/compare/v0.51.0...v0.52.0
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ def compose(self) -> ComposeResult:
278278 f"Unable to bind data; { reactive .owner .__name__ } is not defined on { parent .__class__ .__name__ } ."
279279 )
280280 self ._reactive_connect [name ] = (parent , reactive )
281- self ._initialize_data_bind ( )
281+ self .call_later ( self . _initialize_data_bind )
282282 return self
283283
284284 def _initialize_data_bind (self ) -> None :
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def compose(self) -> ComposeResult:
2222
2323async def test_data_binding ():
2424 app = DataBindApp ()
25- async with app .run_test ():
25+ async with app .run_test () as pilot :
2626
2727 # Check default
2828 assert app .bar == "Bar"
@@ -51,6 +51,7 @@ async def test_data_binding():
5151
5252 # Bind data outside of compose
5353 label2 .data_bind (foo = DataBindApp .bar )
54+ await pilot .pause ()
5455 # Confirm new binding has propagated
5556 assert label2 .foo == "Baz"
5657
You can’t perform that action at this time.
0 commit comments