Open
Bug 600154
Opened 14 years ago
Updated 2 years ago
When submitting an invalid form, scroll to the first invalid element instead of jumping (with focus)
Categories
(Toolkit :: Form Manager, defect)
Toolkit
Form Manager
Tracking
()
NEW
People
(Reporter: mounir, Unassigned)
References
Details
(Whiteboard: [passed-try][needs-review])
Attachments
(3 files, 1 obsolete file)
When an invalid form is submitted, the first invalid element is focused. For the moment, .focus() is directly call which make the focus jumping. It would be better to have the page scrolling to the invalid element so it would be clear to the users that they did not move to a new page.
Reporter | ||
Comment 1•14 years ago
|
||
This is a WIP patch. I will try to tweak the animation speed a bit and check edge cases + write tests.
Reporter | ||
Comment 2•14 years ago
|
||
So, the idea is to have the viewport moving to the invalid element instead of jumping to it so the user will not think the form has been submitted or a new page has been loaded. Limi, I'm going to push that to try so you will be able to test.
Assignee: nobody → mounir.lamouri
Attachment #492364 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #493258 -
Flags: ui-review?(limi)
Attachment #493258 -
Flags: review?(dao)
Reporter | ||
Comment 3•14 years ago
|
||
Builds will be available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/mlamouri@mozilla.com-f791551a81ea
Comment 4•14 years ago
|
||
No tryserver builds yet :( (also, a link to a test page would be great, I'm sure I can find one online, but I'm also sure you have one handy ;)
Reporter | ||
Comment 5•14 years ago
|
||
(In reply to comment #4) > No tryserver builds yet :( I think it has been deleted. I thought it was saved for 14 days :-/ I'm going to push another one. > (also, a link to a test page would be great, I'm sure I can find one online, > but I'm also sure you have one handy ;) Indeed, I should have attached one.
Reporter | ||
Comment 6•14 years ago
|
||
Builds should be available here in 2 or 3 hours: http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/mlamouri@mozilla.com-f1d9acddbbcd
Reporter | ||
Comment 7•14 years ago
|
||
There are 4 input fields in the page, all required. When you click on 'submit', the field on top will be focused, fill it. Then the field on the bottom, the left and finally the right one. The screen shouldn't move for the first field then it should move for the two next ones. The last one should make the screen move a little bit to make it more visible. This has been tested with a window of this size (it will probably behave differently depending of the size of the screen given that elements are placed absolutely): width/height: 942/751
Reporter | ||
Comment 8•14 years ago
|
||
Actually, the previous builds are still available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/old/mlamouri@mozilla.com-f791551a81ea and if the new ones aren't available when you try, have a look here: http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/old/mlamouri@mozilla.com-f1d9acddbbcd
Reporter | ||
Updated•14 years ago
|
Whiteboard: [passed-try][needs-review]
Updated•14 years ago
|
Comment 10•14 years ago
|
||
Of course I didn't mean that we shouldn't scroll at all, but there should be some space left above the invalid input. Labels above the inputs are very common case, fixed menu is maybe not so often used, but also happens
Comment 11•14 years ago
|
||
Comment on attachment 493258 [details] [diff] [review] Patch v1 I don't think we should take large chunks of chrome code messing with content any longer. Can this be written as a content script using the message manager?
Attachment #493258 -
Flags: review?(dao) → review-
Updated•4 years ago
|
Component: General → Form Manager
Product: Firefox → Toolkit
Comment 12•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:tgiles, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: mounir → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(tgiles)
Updated•3 years ago
|
Flags: needinfo?(tgiles)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•