diff --git a/src/textual/pilot.py b/src/textual/pilot.py index c2c45382bd..424a1562ef 100644 --- a/src/textual/pilot.py +++ b/src/textual/pilot.py @@ -231,7 +231,7 @@ async def click( widget, False otherwise. """ try: - done = await self._post_mouse_events( + return await self._post_mouse_events( [MouseDown, MouseUp, Click], widget=widget, offset=offset, @@ -241,7 +241,6 @@ async def click( control=control, times=times, ) - return done except OutOfBounds as error: raise error from None