Skip to content

Slash inserted when template is applied after mistyping #8728

@steffenb7333

Description

@steffenb7333

Search first

  • I searched and no similar issues were found

What Happened?

When applying a template with /template and during typing something is mistyped and corrected, then after the application of the template a / is placed in a block.

Reproduce the Bug

  1. type /template abc (do not use autocomplete, do not press enter)
  2. clear the line with backspace except the / ; the autocomplete is still active and now select Template
  3. apply any template

(sometimes the template is applied correctly without the extra block)

Expected Behavior

Template is applied without extra block

Screenshots

image
The first block is not part of the chosen template

Desktop or Mobile Platform Information

Windows 10, logseq Desktop 0.8.17

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions