thermogl / TITokenField

An iOS version of the NSTokenField (See To: field in Mail and Messages).
http://thermoglobalnuclearwar.com/opensource/
599 stars 172 forks source link

Adding same email twice (or more) will show redundant tokens #60

Closed cherpake closed 10 years ago

cherpake commented 11 years ago

For example add email: a@a.com then space and same email again. When token field will loose focus you will see those 2 emails

I have fixed it with:

and adding this to TIToken

thermogl commented 11 years ago

You should be checking this with the delegate methods, I don't think the field should be responsible.

cherpake commented 11 years ago

I do but the sub view us added even if I return NO in willAdd method

-Evgeny

Sent from my iPhone

On 11 בספט 2013, at 23:14, Tom Irving notifications@github.com wrote:

You should be checking this with the delegate methods, I don't think the field should be responsible.

— Reply to this email directly or view it on GitHub.

thermogl commented 11 years ago

I'm unable to replicate this behaviour. Returning NO from willAdd stops the token being added.

thermogl commented 10 years ago

This could be the same thing as ISSUE #61, actually. I'm gonna close this one to work on that one.