From 68befc4c795a6ce8c7582744db2f66c4ac785ec9 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 24 Jul 2024 15:23:06 +0100 Subject: [PATCH] revert call later --- src/textual/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/command.py b/src/textual/command.py index 5a8d55de75..ad519deeb8 100644 --- a/src/textual/command.py +++ b/src/textual/command.py @@ -1080,7 +1080,7 @@ def _select_or_command( self._cancel_gather_commands() self.app.post_message(CommandPalette.Closed(option_selected=True)) self.dismiss() - self.call_next(self._selected_command.command) + self.call_later(self._selected_command.command) @on(OptionList.OptionHighlighted) def _stop_event_leak(self, event: OptionList.OptionHighlighted) -> None: