Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 7cb035d

Browse files
fix(layouts): do NOT remove layout attributes after className generation
1 parent 7a87dda commit 7cb035d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/core/services/layout/layout.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
*/
2424
enabled: true,
2525

26-
/**
27-
* After translation to classname equivalents, remove the
28-
* original Layout attribute
29-
*/
30-
removeAttributes : true,
31-
3226
/**
3327
* List of mediaQuery breakpoints and associated suffixes
3428
*
@@ -263,11 +257,6 @@
263257

264258
updateFn(getNormalizedAttrValue(className, attrs, ""));
265259
scope.$on("$destroy", function() { unwatch() });
266-
267-
268-
if (config.removeAttributes && (element[0].nodeName != "#comment")) {
269-
element.removeAttr(className);
270-
}
271260
}
272261
}
273262

@@ -309,11 +298,6 @@
309298
*/
310299
function translateToCssClass(scope, element) {
311300
element.addClass(className);
312-
313-
if (config.removeAttributes) {
314-
// After link-phase, remove deprecated layout attribute selector
315-
element.removeAttr(className);
316-
}
317301
}
318302
}
319303

0 commit comments

Comments
 (0)