Results 1 to 4 of 4

Thread: IE only - start edit error Object doesn't support property or method 'selectText'

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Apr 2016
    Posts
    9

    Default IE only - start edit error Object doesn't support property or method 'selectText'

    Create a grid with a checkbox as the first field.
    Programmatically add a new row and start an edit in IE11.
    Seems fixed in 6.1 nightlies, so that's good. May not need an earlier fix.

    Repro in IE11:
    https://fiddle.sencha.com/#fiddle/1b0v


    RowEditor.js can't selectText in this method.

    Code:
      onFieldFocus: function(field) {
        // Cache the active field so that we can restore focus into its cell onHide
    
        // Makes the cursor always be placed at the end of the textfield
        // when the field is being edited for the first time (IE/Edge only).
    if(Ext.isIE || Ext.isEdge) {
            field.selectText(field.inputEl.dom.value.length);
        }

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I wasn't able to reproduce this issue using the test case as it throws an error on add. Hopefully the issue has indeed been fixed for 6.2.

  3. #3

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Yeah, looks like it's fixed in 6.2 as you mentioned. I tried to find the code change that led to the fix (in the interest of a workaround) but couldn't locate the specific ticket.

Similar Threads

  1. Replies: 2
    Last Post: 23 Jun 2014, 4:21 PM
  2. Replies: 5
    Last Post: 19 Jun 2012, 1:44 PM
  3. GroupingStore error in IE - Object doesn't support this property or method
    By kiranpatil in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 25 Mar 2011, 8:57 AM
  4. GroupingStore error in IE - Object doesn't support this property or method
    By kiranpatil in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 3 Feb 2010, 10:16 AM
  5. Replies: 1
    Last Post: 25 Sep 2009, 8:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •