I have two text fields, both have blur events handled through jQuery. When the text field is blurry, some checking occurs, and if the check is not performed, the text field is reoriented (a terrible idea, I know, but in this case this is the desired behavior).
In chrome, if you focus the first text field, then try to focus the second, you will see that this order of events occurs:
- focus shot from text1
- blur fired from text1
- focus shot from text1
In IE8, however, you will see the following:
- LOG: focus activated from text1
- LOG: blur from text1
- LOG: focus activated from text1
- LOG: focus fired from text2
- LOG: blur from text2
- LOG: focus activated from text1
I need to be able to prevent the focus and blurring of events from turning on the second text field in case of a reorientation of the first text field.
Here is a fiddle demonstrating the problem. Behavior occurs only in IE8.
Additional information: all these event handlers are tied to separate private areas, so in two text windows there is no (what I know) interaction with other functions of the handler.
source share