Skip to content

Commit

Permalink
fix: ensure prompt is rendered properly upon mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrossinek committed Jan 6, 2023
1 parent 6b3a4c7 commit 37bd0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cobib/ui/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def on_input_submitted(self, event) -> None:
prompt.styles.dock = "bottom"
self.mount(prompt)

def action_prompt(self, value) -> None:
async def action_prompt(self, value) -> None:
"""TODO."""
prompt = Input(value=value)
prompt.styles.dock = "bottom"
Expand All @@ -168,7 +168,7 @@ async def action_submit(*args, **kwargs):
prompt.key_escape = key_escape
prompt.action_submit = wrap_action_submit(prompt.action_submit)

self.mount(prompt)
await self.mount(prompt)
prompt.focus()


Expand Down

0 comments on commit 37bd0a4

Please sign in to comment.