Skip to content

Cannot completely clear the field #121

Closed
@SnidelyWhiplash

Description

@SnidelyWhiplash

When adding some text, then backspacing all the way, the placeholder does not restore. And when saving, the content that persists is a single <br> tag.

I think it's because the elseif on this line is commented out.

Placing if (content.innerHTML === '<br>') content.innerHTML = ''; on its own line below seems to solve the problem. Not sure if there are any adverse side-effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions