Hello,
SelectOnFocus(true) doesn't work in Chrome. In Firefox all fine.
Printable View
Hello,
SelectOnFocus(true) doesn't work in Chrome. In Firefox all fine.
Hi Yury,
Thank you for the report! Logged in GitBug:
https://github.com/extnet/Ext.NET/issues/890
It also doesn't work in IE10 and Safari. I didn't test others. Here is a test case.
Test Case
Found this Sencha bug report which is marked as fixed in ExtjS 5.1.2. So, the fix will come to Ext.NET with the next ExtJS upgrade.Code:<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v3 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:TextField runat="server" Text="Some text" SelectOnFocus="true" />
</form>
</body>
</html>
https://www.sencha.com/forum/showthread.php?301725
Before the fix comes I can recommend this solution:
Code:<ext:TextField runat="server" Text="Some text">
<Listeners>
<Focus Handler="this.inputEl.dom.select();" Delay="1" />
</Listeners>
</ext:TextField>
Okay, I decided to fix it in Ext.NET before ExtJS 5.1.2 upgrade.
The fix has been committed in the revision 6558 (trunk). It goes to the 3.3 release.