keep reference to remove task

This commit is contained in:
Will McGugan
2023-01-24 16:01:37 +01:00
parent d9dd1dcbe8
commit 3673b0ff48
3 changed files with 6 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ async def test_remove():
class RemoveApp(App):
def compose(self) -> ComposeResult:
yield Container(RemoveMeLabel(), RemoveMeLabel())
yield Container(RemoveMeLabel())
async def action_remove_all(self) -> None:
await self.query_one(Container).clear()