File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -332,8 +332,7 @@ export class Dialog extends LitElement {
332
332
// prevent body scrolling early only when opening to avoid layout
333
333
// shift when closing.
334
334
if ( ! this . modeless && this . open ) {
335
- ( this . constructor as typeof Dialog )
336
- . setDocumentScrollingDisabled ( this . open ) ;
335
+ Dialog . setDocumentScrollingDisabled ( this . open ) ;
337
336
}
338
337
if ( this . open ) {
339
338
this . contentElement . scrollTop = 0 ;
@@ -410,8 +409,7 @@ export class Dialog extends LitElement {
410
409
await closedPromise ;
411
410
// enable scrolling late to avoid layout shift when closing
412
411
if ( ! this . modeless ) {
413
- ( this . constructor as typeof Dialog )
414
- . setDocumentScrollingDisabled ( this . open ) ;
412
+ Dialog . setDocumentScrollingDisabled ( this . open ) ;
415
413
}
416
414
}
417
415
// Focus initial element.
You can’t perform that action at this time.
0 commit comments