|
[
Permlink
| « Hide
]
Adnan Durrani added a comment - 07/May/09 10:39 AM
Attaching test case which demonstrates problem with IE 7.
Introduce separate variable (not modified by component renderers) that keeps track of which element has focus. Restore focus on DOM update.
Clear focus variable on blur.
Edit updated 'input' element instead of replacing it. Update style properties individualy so that IE will render new style since element.setAttribute('style',...) doesn't work as expected.
There's a simpler solution described here but it does not work in IE7: http://www.quirksmode.org/bugreports/archives/2005/03/setAttribute_does_not_work_in_IE_when_used_with_th.html . Note that the way that input elements were being updated was changed in 1.7.2 for
However, this change resulted in other undesired side-effects, such as focus being lost in IE after the input element was updated in certain cases. The new fix keeps the original elements, so avoids the focus loss issues, but uses a new technique of changing the style attribute via the JS API instead of just updating it in the DOM, which solves the issue of IE not interpreting the new style values when they are updated. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||