Results 1 to 7 of 7

Thread: Invalid form scrolls to top

  1. #1
    Sencha User
    Join Date
    Nov 2015
    Location
    Romania,Timisoara
    Posts
    14
    Answers
    2

    Default Answered: Invalid form scrolls to top

    Hello, i have a bug everywhere i use forms and validation. Let's say we have a form and all fields are required. If i validate the form, obviously all fields will be red (invalid), but if i start to type in the most bottom field, the form scrolls to top. Even if i complete all fields starting from top to bottom, the form will still scroll to top everytime i start typing in an invalid field. This happens in all forms that i have. Somebody know why this happens or how can i solve it?

  2. Apparently what fixed our problem was to delete or set to something else the msgTarget: 'side'

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

    Default

    Sounds a bit like this issue.
    https://www.sencha.com/forum/showthread.php?296531

    Does it only happen for you when a field has failed validation? With which specific version of Ext JS are you seeing this problem?

  4. #3
    Sencha User
    Join Date
    Nov 2015
    Location
    Romania,Timisoara
    Posts
    14
    Answers
    2

    Default

    Apparently what fixed our problem was to delete or set to something else the msgTarget: 'side'

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

    Default

    Glad to hear that you found a solution. Are you saying that there's still a bug relating to the msgTarget configuration?

  6. #5
    Sencha User
    Join Date
    Nov 2015
    Location
    Romania,Timisoara
    Posts
    14
    Answers
    2

    Default

    Probably, we didn't have and still don't have time to search for some other solutions in this moment. But it looks like this hotfix worked for us. So changing the msgTarget to top or qtip or removing it works. Looking forward to come back to this topic when we'll have some more time.

  7. #6
    Sencha User
    Join Date
    Nov 2015
    Location
    Romania,Timisoara
    Posts
    14
    Answers
    2

    Default

    @Gary I investigated more, it looks like the bug is not solved , since we use version 5.1.1.451 of extjs.

  8. #7
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I tried the test case from that thread and it is definitely resolved in 5.1.1, so I agree that this seems to be a separate issue. Any chance you can recreate it in a test case?
    https://fiddle.sencha.com/#home

Similar Threads

  1. [FIXED] Clicking on a checkbox scrolls the form!
    By ngd in forum Ext 5: Bugs
    Replies: 4
    Last Post: 12 Jan 2018, 9:19 AM
  2. [FIXED] component does not place on form with heigth that scrolls on window
    By escastorena in forum Sencha Architect 3.x: Bugs
    Replies: 6
    Last Post: 29 Feb 2016, 3:18 PM
  3. Form panel scrolls above title bar
    By jackclick in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 11 Feb 2013, 11:29 AM
  4. [2.0.1] OOTB form example scrolls entire viewport
    By Grolubao in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 26 Sep 2012, 5:42 AM
  5. Mark all required form fields invalid @ form load
    By netsuo in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 12 Nov 2010, 2: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
  •