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

US2ValidatorTextField doesn't always forward delegate. #34

Open
markst opened this issue Oct 25, 2013 · 3 comments
Open

US2ValidatorTextField doesn't always forward delegate. #34

markst opened this issue Oct 25, 2013 · 3 comments

Comments

@markst
Copy link

markst commented Oct 25, 2013

If I'm using US2ValidatorTextField with a validator which allows violation & validates during focus, the UITextFieldDelegate "shouldChangeCharactersInRange" never gets passed on.

@joelash
Copy link

joelash commented Nov 13, 2013

I'm seeing what I can assume is a similar issues when using US2ValidateTextField, I'll have to dig more into this. But has anything else been determined about this?

@martinstolz
Copy link
Contributor

Will have a look soon.

@jyiin
Copy link

jyiin commented Jan 7, 2015

I encountered something similar. I'm guessing it's because of this line of code.

if (!_validatorTextField.validateOnFocusLossOnly

It doesn't seem like a bug to me. If you set shouldAllowViolations to YES on the text field and shouldAllowViolation on the condition, the delegate gets called. I think this is the whole point of properties like shouldAllowViolations.

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

No branches or pull requests

4 participants