[FIXED] [#890] [3.3] SelectOnFocus doesn't work in Chrome

  1. #1

    [FIXED] [#890] [3.3] SelectOnFocus doesn't work in Chrome

    Hello,

    SelectOnFocus(true) doesn't work in Chrome. In Firefox all fine.
    Last edited by Daniil; Sep 07, 2015 at 1:40 PM. Reason: [FIXED] [#890] [3.3]
  2. #2
    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
    <%@ 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>
    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.
    https://www.sencha.com/forum/showthread.php?301725

    Before the fix comes I can recommend this solution:
    <ext:TextField runat="server" Text="Some text">
        <Listeners>
            <Focus Handler="this.inputEl.dom.select();" Delay="1" />
        </Listeners>
    </ext:TextField>
  3. #3
    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.
    Last edited by Daniil; Jan 11, 2016 at 3:21 PM.

Similar Threads

  1. Replies: 1
    Last Post: Sep 04, 2014, 9:52 AM
  2. [CLOSED] Editable Plugin doesn't work with Chrome
    By anup in forum 1.x Premium Help
    Replies: 7
    Last Post: Jul 03, 2013, 4:37 AM
  3. Replies: 1
    Last Post: Apr 16, 2013, 10:10 AM
  4. Replies: 5
    Last Post: Oct 17, 2012, 4:55 AM
  5. Replies: 4
    Last Post: Aug 31, 2009, 12:10 PM

Posting Permissions