Skip to content

Commit

Permalink
revert call later
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 24, 2024
1 parent 5255f7f commit 68befc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 68befc4

Please sign in to comment.