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

IE 11 automatically raises input validation when using " event : { 'input' } " and " hasFocus " binding #2095

Open
ss13531 opened this issue Jul 16, 2016 · 0 comments
Milestone

Comments

@ss13531
Copy link

ss13531 commented Jul 16, 2016

I have an input which will be focused at the first time loading of page.
<input type='text' id='psName' data-bind=" textInput: name, css : { 'error' : isError }, enable: isAjaxLoading() === false, hasFocus: isFirstLoad, event : { 'input' : validate } "/>
"validate" will cause validate value of property "name", only check it is empty or not, then return "isError(true or false)".
"isAjaxLoading" is property which use to show/hide an "loading" image. The input will be enabled after loading page done ( = isAjaxLoading(false)).
When I test it with IE11, FF and Chrome (newest) I have 2 problems:

  • Sometimes, the text input cannot be automatically focused (problem is on FF, Chrome, too) .
  • If text input is automatically focused, the "validate" will automatically be called ( problem doesn't happen on FF, Chrome)

Summary, I want to resolve that how to set focus after the loading and render "enable" are done.
I used knockout 3.0.0.

@mbest mbest modified the milestone: Not assigned Dec 2, 2016
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

2 participants