Skip to content

BbTagInput does not update UI after tag removal until input changes #279

@Mape23aq

Description

@Mape23aq

Description

When removing a tag, the bound Tags state updates correctly, but the rendered tags in the input do not update immediately. The UI only refreshes after the user types into the input field.

Steps to reproduce

E.g. go to: https://blazorblueprintui.com/docs/components/tag-input

And then:

  1. Select 2 (or multiple) tags.
  2. Remove one tag.
  3. Observe that the bound state updates in the bind tags text
  4. The tags displayed in the input are not updated.
  5. Type a character in the input.
  6. The UI updates and now matches the state.

Expected behavior

The tag UI should update immediately after a tag is removed.

Actual behavior

The UI remains stale until the input value changes.

Suggested fix

Update ShouldRender() to include tag collection changes, or remove the custom render check so the component re-renders when tags change.

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