Community
Participate
Working Groups
Programatically setting a selection on Text delays for 50ms (TextUtil.js). While not much, it can could happen that a keypress cached by the browser gets executed before it's applied, which is then messing up selection and text content.
Fixed CVS HEAD. Selection is set on appear.
With this change the initial setting of selection does not work anymore in IE, Chrome and Safari. Reproducible with Controls Demo -> Text tab. Open the text tab in one of these browsers -> text is not selected. Works fine in Firefox and Opera.
Also fixed. For webkit, the problem seems to be when setting the same selection values twice. For IE, the issue was that setting the selection length on any text, even if it has length zero, resets all other selections to 0. Fixed in TextField.js and TextUtil.js