Skip to content

Inline icons are flickering on keyup/keypress event #663

@mayeenulislam

Description

@mayeenulislam

Describe the bug
The following GIF explains it well:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Make a new note
  2. Write something
  3. Add an Icon anywhere within the line, e.g., :LiClock:, and add more text after the icon
  4. Try to write/fix anything but the icon on the line

Note: The flickering happens only on the characters after the icon

Expected behavior
The texts remain in the same position and don't flicker.
Swap the icon (🕐) from preview to :LiClock: only when the cursor is at the icon.

Screenshots
Attached a video above

Additional context
Obsidian version: v1.8.10
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.26100

Related Issue
Icons cannot be selected, or after selection user can't understand whether it is selected or not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions