mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[Mobile] Don't move DOM nodes
When including/excluding a DOM element via mct-device, use replaceWith() instead of parent().append() to preserve original ordering of DOM elements from template. nasa/openmctweb#213.
This commit is contained in:
@ -85,7 +85,7 @@ define(
|
||||
function link(scope, element, attrs, ctrl, transclude) {
|
||||
if (deviceMatches(attrs.mctDevice)) {
|
||||
transclude(function (clone) {
|
||||
element.parent().append(clone);
|
||||
element.replaceWith(clone);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user