Skip to content

Editor - Tag disappears from drop-down when deleting from post #25020

@brandishwar

Description

@brandishwar

Issue Summary

In the post editor is the tag dropdown at the side that allows you to add tags to a post - whether creating new or using an existing tag. When editing a post, if you remove a tag from the post, the tag is also removed from the drop-down selection. So if the tag was removed unintentionally, the only way to add the tag back into the post is to exit the post editor and re-open the post.

So expected behavior is all available tags are always available in the drop-down unless they're already linked to the post.

Strangely, though, the issue is NOT reproducible when...

Editing a new post. The post must be a saved draft or published post. When editing a new post, you can add and remove tags as expected and the tags you remove are not removed from the tags drop-down. It is only when editing tags for a draft or published post that this is reproducible. But...

Removing the tag without first expanding the drop-down. You must expand the Tags drop-down first. If you remove the tag (clicking the X on a tag bubble while hovering over it) without first expanding the drop-down, the removed tag is available in the drop down to be re-added.

Even more bizarre.... remove the tag without first expanding the drop-down and the issue is not reproducible at all. You can remove and re-add the tag to your heart's content.

Steps to Reproduce

  1. Open an existing published/draft post with tags in the editor
  2. Expand the post settings at right
  3. Click into the Tags selector or click down-arrow. Drop-down menu appears showing all available tags.
  4. Delete one of the tags. Drop-down menu closes and tag is removed from those linked to the post.
  5. Click back into the tags area or click down arrow at right of Tags.

Expected behavior: Tag removed in step 4 is available to be added back onto the post.

Observed behavior: Tag removed in step 4 is not available. The tag will not become available again until the editor is closed and re-opened.

Ghost Version

6.1.0

Node.js Version

22.20

How did you install Ghost?

AWS host running Amazon Linux 2023

Database type

MySQL 8

Browser & OS version

Brave 1.82.172, WIndows 11

Relevant log / error output

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlycommunity[triage] Community features and bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions