Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add removable property to Chips #2345

Closed
giovannispd opened this issue Oct 13, 2021 · 3 comments
Closed

Add removable property to Chips #2345

giovannispd opened this issue Oct 13, 2021 · 3 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@giovannispd
Copy link

[X] feature request

add an option to hide remove icon for single chips item

@mertsincan mertsincan changed the title Chips component: optional 'remove item' icon Add removable property to Chips Nov 4, 2021
@mertsincan mertsincan self-assigned this Nov 4, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 4, 2021
@mertsincan mertsincan added this to the 7.0.0.Final milestone Nov 4, 2021
@mertsincan
Copy link
Member

Hi,

You can use;

removable={true | false}
removable={(options) => boolean} // options = { value, index, props}

Best Regards,

@kriszdev
Copy link

Hi,
When you use the removable with function it throws a lot of errors.
removable={(options) => boolean} // options = { value, index, props}

@melloware
Copy link
Member

@kriszdev can you provide a Code Sandbox reproducer. This will get you started so we can see the issue: https://codesandbox.io/s/06fjb4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

4 participants