-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-select moves DOM elements and puts them back in the wrong position #2456
Comments
Is it linked to #2447 ? There is clearly something fishy going with |
Issue #2447 is about the delay while opening, this one is more that it moves elements in the main DOM after |
I understand it. What I meant is that the delay can also be caused by DOM rebuilding back and forth. Also there is displacement of selector text, and page jump to top if select is at its bottom (added it to comments in #2447 earlier today). At least it sounds plausible. |
Having similar issue with #2390. |
The issue is probably inside |
@guzza can you provide a code pen demoing this? I tried re-creating it and it doesn't appear to still be happening. Is it resolved now? If not, could you provide some browser/OS details so I can explore further? |
I have a similar problem with this. I have a Google Map with markers that drops in on render. So when md-select moves content the Google Map runs all the animations again. Could we have a option for not have a backdrop for the select list? |
👍 for this issue. |
Submitted a PR to fix this: #2571 |
I just pulled the fresh version with @gustavohenke fix and its fine now puts back elements properly. |
When
md-select
gets opened it rearranges the DOM and the layout goes crazy.The layout of the site is
<body layout="row">
with 2 main children one being<md-sidenav>
and second being the main<div layout="column" layout-fill role="main" ui-view="main"></div>
where the Angular injects the view.md-select
is located inside the<div ui-view="main"
.First screenshot is before
md-select
is openedThis screenshots is while its open
And finally when
md-select
is closed we can see the action moved the<div ui-view="main">
to the top effectively moving the<md-sidenav>
from left to right because of the flex layout ordering.The text was updated successfully, but these errors were encountered: