3

As the title already tells: When someone is answering a question or creating a question with a fiddle inside and when this fiddle contains a HTML <select> element, the child <option> elements will be scrolling with the page when clicked on (allowing for the same effect as setting an element to a (CSS property) position: fixed).

An example of this bug could be found on a question on the following page.

In order to reproduce, hit the "Run code snippet" button followed by clicking on the <select> element. Start scrolling (with mouse cursor outside of the snippet) to see the bug happening.

5
  • 4
    Seems like something you should report to Chrome. The browser is supposed to close the menu when you scroll, but seems not to when the select menu is inside a frame. Firefox handles this correctly.
    – animuson StaffMod
    Commented Apr 12, 2019 at 15:04
  • I seem to be unable to reproduce this "bug" on my local machine in a local file when running/rendering inside Chrome, would you be able to reproduce this outside of the Stack Exchange platform? This makes me doubt it is a browser related problem. @animuson I made use of a basic <iframe> element which would render a page containing a <select> element and enough height set on <div> elements in order to make scrolling possible. It is working just fine. Would this not mean it is something on Stack's side?
    – Barrosy
    Commented Apr 15, 2019 at 8:39
  • The code I used for trying to reproduce it locally: This JSFiddle contains an <iframe> which should render the page containing a <select>: JSFiddle
    – Barrosy
    Commented Apr 15, 2019 at 8:53
  • 1
    To close voters: the bug was fixed. As it's tagged as under review, I've flagged it to ask for a status-completed tag now. Commented Jun 20, 2019 at 15:41
  • @SonictheBracketedHedgehog We did nothing to fix this. Internally, it was silently rejected because it was extremely minor and not clearly anything to do with our code. But we were able to further diagnose it as only occurring if you open the select menu, move your cursor outside of the iframe and then try to scroll. It's just Chrome not handling that case correctly.
    – animuson StaffMod
    Commented Jun 27, 2019 at 15:46

0

Browse other questions tagged .