File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
src/packages/block/block-grid/components
block-grid-areas-container Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ export class UmbBlockGridAreasContainerElement extends UmbLitElement {
46
46
manager . layoutStylesheet ,
47
47
( stylesheet ) => {
48
48
// Do not re-render stylesheet if its the same href.
49
- if ( ! stylesheet || this . _styleElement ?. getAttribute ( ' href' ) === stylesheet ) return ;
49
+ if ( ! stylesheet || this . _styleElement ?. href === stylesheet ) return ;
50
50
this . _styleElement = document . createElement ( 'link' ) ;
51
- this . _styleElement . setAttribute ( ' rel' , 'stylesheet' ) ;
52
- this . _styleElement . setAttribute ( ' href' , stylesheet ) ;
51
+ this . _styleElement . rel = 'stylesheet' ;
52
+ this . _styleElement . href = stylesheet ;
53
53
} ,
54
54
'observeStylesheet' ,
55
55
) ;
Original file line number Diff line number Diff line change @@ -209,11 +209,10 @@ export class UmbBlockGridEntriesElement extends UmbFormControlMixin(UmbLitElemen
209
209
this . observe (
210
210
manager . layoutStylesheet ,
211
211
( stylesheet ) => {
212
- if ( ! stylesheet ) return ;
213
- if ( this . _styleElement ?. href === stylesheet ) return ;
212
+ if ( ! stylesheet || this . _styleElement ?. href === stylesheet ) return ;
214
213
this . _styleElement = document . createElement ( 'link' ) ;
215
- this . _styleElement . setAttribute ( ' rel' , 'stylesheet' ) ;
216
- this . _styleElement . setAttribute ( ' href' , stylesheet ) ;
214
+ this . _styleElement . rel = 'stylesheet' ;
215
+ this . _styleElement . href = stylesheet ;
217
216
} ,
218
217
'observeStylesheet' ,
219
218
) ;
You can’t perform that action at this time.
0 commit comments