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

[MdChips] custom duplicated checking method #1288

Closed
VdustR opened this Issue Dec 9, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@VdustR
Copy link
Member

VdustR commented Dec 9, 2017

As we have rejecting duplicated chip by comparing strings whether they are equal, I think we could add an optional props for the comparing method for cases like regarding apple and Apple as the same chip or regarding accent characters like e, (String.fromCharCode(0x65, 0x300)), è(String.fromCharCode(0xe8)) as the same character.

@VdustR VdustR changed the title [MdChips] feature - custom duplicated checking method [MdChips] custom duplicated checking method Dec 9, 2017

@Samuell1

This comment has been minimized.

Copy link
Member

Samuell1 commented Dec 20, 2017

Maybe we can use fuzzy search like table is using?

VdustR added a commit to VdustR/vue-material that referenced this issue Dec 25, 2017

feat(MdChips): formatter
Formatter before chip insertion. Effects to insertion and duplicated-checking.

fix vuematerial#1288

@Samuell1 Samuell1 added in review and removed in review labels Jan 10, 2018

marcosmoura added a commit that referenced this issue Jan 12, 2018

feat(MdChips): add formatter for individual chips (#1339)
* feat(MdChips): formatter

Formatter before chip insertion. Effects to insertion and duplicated-checking.

fix #1288

* style(MdChips): always return a value

* docs(Chips): fix `md-format` API description

#1339 (comment)

* docs(ChipsFormat): fix component name and example message

* docs(ChipsFormat): `formatName` return result directly

#1339 (comment)

* style(MdChips): add a space before `if` statement

#1339 (comment)

* docs(Chips): better message for formatter

#1339 (comment)

* fix: code style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.