Chip - allow removable property while template is defined #1256
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
**I'm submitting a
Current behavior
Adding any template within the chip tag prevents the removable property from being respected
E.g.
<Chip label="label set via attribute" removable />
will render a chip with a label and an icon to remove the chip.
But:
<Chip removable> label set via template</Chip>
will not render a removable icon.
Expected behavior
If removable property is set, render the remove icon at the end of chip, regardless of what template contains.
Properties removable, removeIconClass, and the remove event should all still be used while template exists.
other properties such as label and icon are easily re-implemented, so not as important
(also hard to know which should be placed first between attribute label and template label. Whereas removable would be expected to be rendered at end of chip).
What is the motivation / use case for changing the behavior?
Prevents users from having to manually implement remove functionality and callback when it already exists.
The text was updated successfully, but these errors were encountered: