You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. I'm having an issue in IE8 (tested on XP) with the date and time pickers not sending the picked values to the input fields linked. I've traced it down to the following code in picker.js, line 131:
activeElement = activeElement && (activeElement.type || activeElement.href).
in IE8 in my environment this results in activeElement = undefined.
So the test on line 134 will fail (jquery/sizzle throws an exception because of the undefined object).
I fixed this by simply changing line 134 to:
if (targetDisabled || ! $(ELEMENT).is(':focus') ) {
$target might have been a better option than $(ELEMENT) but I thought I'd use the same object that was used to focus the control on line 135 to make it clearer what was going on for me :).
That code should work on jquery v 1.7.2 and up (I tested with 1.7.2), which I believe is the minimum version you support.
I'm not sure whether lines 130 and 131 (setting the activeElement) are still required - I didn't see another reference to them in the code in that file. However, activeElement looks like it is set at a higher scope - possibly global, so I didn't want to suggest a change to that code. The fact that the activeElement variable is not scoped locally might be a bug, but it doesn't seem to affect the use in my configuration.
Cheers,
Allan.
The text was updated successfully, but these errors were encountered:
a similar error still happens in line 133: ELEMENT.focus()
I added a browser detection line there but that doesn't seem to be the best idea so if you would have a look, thx!
Hi there. I'm having an issue in IE8 (tested on XP) with the date and time pickers not sending the picked values to the input fields linked. I've traced it down to the following code in picker.js, line 131:
activeElement = activeElement && (activeElement.type || activeElement.href).
in IE8 in my environment this results in activeElement = undefined.
So the test on line 134 will fail (jquery/sizzle throws an exception because of the undefined object).
I fixed this by simply changing line 134 to:
if (targetDisabled || ! $(ELEMENT).is(':focus') ) {
That code should work on jquery v 1.7.2 and up (I tested with 1.7.2), which I believe is the minimum version you support.
I'm not sure whether lines 130 and 131 (setting the activeElement) are still required - I didn't see another reference to them in the code in that file. However, activeElement looks like it is set at a higher scope - possibly global, so I didn't want to suggest a change to that code. The fact that the activeElement variable is not scoped locally might be a bug, but it doesn't seem to affect the use in my configuration.
Cheers,
Allan.
The text was updated successfully, but these errors were encountered: