Skip to content

HTML editor collapses after toggling sticky fields and adding a new note #4468

@abdnh

Description

@abdnh

The HTML toggle button seems to have a bug when used in conjunction with the pin feature.
If HTML is toggled on while adding a new card, the toggle state should remain the same after the card is added. For example, if HTML is active and you press Ctrl + Enter, the HTML field should remain visible. This is the desired behavior when adding cards in batches.
However, if a field is pinned while HTML is active and then Ctrl + Enter is pressed, all active HTML fields collapse unexpectedly.

Originally reported on https://forums.ankiweb.net/t/toggle-html-in-add-window-bug-version-25-09-2/67790

I can reproduce it in #4029: the HTML editor collapses immediately after toggling sticky fields there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions