Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented May 9, 2025

Description

This pull request introduces a new isDuplicate prop to the TagsInput component in @mantine/core. This allows developers to provide custom logic for detecting duplicate tags.

  • Implemented isDuplicate prop for flexible duplicate detection.
  • Updated handleValueSelect to utilize the custom isDuplicate logic.
  • Added unit tests to ensure the behavior works as expected.

…ate detection logic

- Introduced `isDuplicate` prop to allow custom tag duplication checks.
- Updated `handleValueSelect` logic to utilize the new `isDuplicate` prop.
- Added tests to verify custom duplicate detection functionality.
@rtivital rtivital changed the base branch from master to 8.1.0-contributions May 10, 2025 05:14
@rtivital rtivital merged commit f337db9 into mantinedev:8.1.0-contributions May 10, 2025
1 check passed
@rtivital
Copy link
Member

Thanks!

@Han5991 Han5991 deleted the feature/tagsInput-isDuplicate branch June 22, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants