Unexpected and unwanted scroll behaviour on focus()
Reported by
austin.f...@gmail.com,
Oct 12 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1. https://codepen.io/AustinFrance/pen/MEBXVj 2. Make sure scrolled to top of view so can see "Tests" title 3. Click on the Target column What is the expected behavior? Nothing obvious should happen. Behind the scenes, the div that encapsulates the grid (header and content) is given focus (the one who's id is focusonme What went wrong? The view scrolls so that the clicked header is placed at the top of the page. I am pretty sure this didn't used to happen as my regression tests for column sorting started failing because the header position had moved. Did this work before? Yes Does this work in other browsers? No Same behaviour seen in Safari, behaves as expected in Firefox Chrome version: 61.0.3163.100 Channel: stable OS Version: OS X 10.12.6 Flash Version: If I remove tabindex="-1" from the LAST (clicked) header it doesn't scroll when clicked.
,
Oct 13 2017
Side note and correction (in case its relevant) My regression tests were in fact failing because selenium+chromedriver were reporting the element as unclickable. Recent versions have fixes in for that particular issue. So the scroll behaviour itself didn't cause my test to fail, and may have been around longer than I originally thought.
,
Oct 19 2017
A non-(recent)-regression, sunyunjia@, ptal to diagnose.
,
Jan 3
Sandra, any update on this? |
||
►
Sign in to add a comment |
||
Comment 1 by sc00335...@techmahindra.com
, Oct 13 2017Components: Blink>Scroll
Labels: -Pri-3 Needs-Triage-M61 Triaged-ET M-63 OS-Linux OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)