material icon indicating copy to clipboard operation
material copied to clipboard

$mddialog close() methods scrolls page to top on IE11

Open danivicario opened this issue 11 years ago • 4 comments

Hello all:

when calling to the $mdDialog.cancel() or $mdDialog.hide() methods, my page scrolls to the top.

This works well in Chrome though as it closes the dialog and stays where it should.

However in ie11, you close it and the page scrolls to the top; I have tried to hide the scrollbar and return a promise but seems that is capable of scrolling even with the scrollbar hidden

danivicario avatar Oct 23 '15 12:10 danivicario

This is a problem for all dialogs right now, selectors etc. See: angular/material/issues/4640 angular/material/issues/3627 angular/material/issues/3511

Patrik-Lundqvist avatar Oct 26 '15 09:10 Patrik-Lundqvist

The same is happening to me but in Chrome.

sharpmachine avatar Oct 26 '15 19:10 sharpmachine

http://codepen.io/anon/pen/QjBKbm

This is the actual codepen from the docs, just edited to add some page height. Scroll down to the select in IE, open the select, click outside of the select, it'll scroll to the top. If you select an item, it'll scroll to the top first and then back down but only to put the select in to view (not where you were before selecting).

hillerstorm avatar Nov 02 '15 16:11 hillerstorm

See my comment in #4640.

wolfika avatar Nov 07 '15 10:11 wolfika