Buttons & Templater: Buttons does not wait for tp.system.prompt()

How to make Buttons wait and process for Templater’s return value of tp.system.prompt() ?

The button below works fine and as expected. It creates a new note with the current timestamp as title and opens it in a split. So far, everything is fine.

```button
name my awesome button
type note(<%tp.date.now("X")%>, split) text
action this goes into the new note
templater true
color green
```

My problem appears if I change the above Templater command <%tp.date.now("X")%> for <%await tp.system.prompt("Give me a title")%>:

```button
name my awesome button
type note(<%await tp.system.prompt("Give me a title")%>, split) text
action this goes into the new note
templater true
color green
```

Now, clicking the button wreaks havoc on the new note and the button:

  • A new note appears but not in a split but it replaces the note with the button.
  • The title of the new note is "<%await tp.system.prompt("Give me a title".
  • The prompt appears over the note. A value can be entered.
  • Going back to the note with the button reveals that the Templater command has been replaced by the value entered in the prompt.

How to fix that? I want the entered value in the new note (as title) not wrecking my button.