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:
- Select 2 (or multiple) tags.
- Remove one tag.
- Observe that the bound state updates in the bind tags text
- The tags displayed in the input are not updated.
- Type a character in the input.
- 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.
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:
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.