Results 1 to 2 of 2

Thread: Stop textfield's from receiving auto focus

  1. #1
    Sencha User
    Join Date
    Apr 2017
    Posts
    15
    Answers
    1
    Vote Rating
    1
      0  

    Default Stop textfield's from receiving auto focus

    Does anyone know how to stop textfields from receiving auto focus? When another textfield is focused and we change tabs the first textfield in the new tab receives focus automatically. This behaviour is undesired. Is there any way to turn that off?

    NOTE: That we still need to be able to focus into the field, but only with either tab or clicking.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    910
    Answers
    105
    Vote Rating
    187
      0  

    Default

    Are you using modern or classic toolkit?
    I can't reproduce the behavior you describe: https://fiddle.sencha.com/#view/editor&fiddle/25jt
    Maybe there is something in your app that's causing it?

  3. #3
    Sencha User
    Join Date
    Oct 2016
    Location
    Pune, India
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Try setting the property focusOnToFront: false of Tab.

    http://docs.sencha.com/extjs/6.2.1/c...focusOnToFront

    As per docs it is true by default.

Similar Threads

  1. Stop map from auto centering after map render
    By fourandthree in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 4 Jan 2016, 8:13 AM
  2. Iphone 5 Auto focusing on text field when it is not set to auto focus
    By sushsolutions in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 16 May 2014, 8:49 AM
  3. How to stop receiving updates from Ext.util.GeoLocation
    By chandramuralis in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 4 May 2011, 5:29 AM
  4. How to stop auto scrolling?
    By teto in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 13 Oct 2009, 5:45 PM
  5. stop auto editing when using tab
    By bhomass in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 16 Apr 2009, 9:43 PM

Tags for this Thread

Posting Permissions

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