File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,21 @@ public void IsKeyboard_Ok()
182182 cut . DoesNotContain ( "data-bb-keyboard=\" true\" " ) ;
183183 }
184184
185+ [ Fact ]
186+ public void BodyScroll_Ok ( )
187+ {
188+ var cut = Context . RenderComponent < Drawer > ( builder =>
189+ {
190+ builder . Add ( a => a . BodyScroll , true ) ;
191+ builder . Add ( a => a . ChildContent , s =>
192+ {
193+ s . OpenComponent < Button > ( 0 ) ;
194+ s . CloseComponent ( ) ;
195+ } ) ;
196+ } ) ;
197+ cut . Contains ( "data-bb-scroll=\" true\" " ) ;
198+ }
199+
185200 class MockContent : ComponentBase
186201 {
187202 [ CascadingParameter ( Name = "BodyContext" ) ]
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ public async Task Show_Ok()
2424 Placement = Placement . Bottom ,
2525 ShowBackdrop = true ,
2626 BodyContext = "test-body-context" ,
27- IsKeyboard = true
27+ IsKeyboard = true ,
28+ BodyScroll = true
2829 } ;
2930 var service = Context . Services . GetRequiredService < DrawerService > ( ) ;
3031 var cut = Context . RenderComponent < BootstrapBlazorRoot > ( ) ;
You can’t perform that action at this time.
0 commit comments