Skip to content

Commit 57f0df0

Browse files
committed
Fix for scoping when class is not specified on element (null was prepended instead of empty string)
1 parent 4a9ef8e commit 57f0df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/standard/x-styling.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215

216216
_scopeElementClass: function(element, selector) {
217217
if (!nativeShadow && !this._scopeCssViaAttr) {
218-
selector += (selector ? ' ' : '') + SCOPE_NAME + ' ' + this.is +
218+
selector = (selector ? selector + ' ' : '') + SCOPE_NAME + ' ' + this.is +
219219
(element._scopeSelector ? ' ' + XSCOPE_NAME + ' ' +
220220
element._scopeSelector : '');
221221
}

0 commit comments

Comments
 (0)