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

Commit e8b60de

Browse files
fix(layout): restrict directives to attributes only
1 parent 8b210c3 commit e8b60de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/services/layout/layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
function attributeWithObserve(className, addDirectiveAsClass) {
139139
return function() {
140140
return {
141+
restrict : 'A',
141142
compile: function(element, attr) {
142143
attributeValueToClass(null, element, attr);
143144

@@ -201,6 +202,7 @@
201202
function attributeWithoutValue(className) {
202203
return function() {
203204
return {
205+
restrict : 'A',
204206
compile: function(element, attr) {
205207
attributeToClass(null, element);
206208

0 commit comments

Comments
 (0)