Skip to content

Commit 613490d

Browse files
committed
fix(bottomsheet): ios working peekHeight
1 parent 4ef8c84 commit 613490d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,10 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
407407
bottomSheet.dismissOnDraggingDownSheet = options.dismissOnDraggingDownSheet !== false;
408408

409409
const peekHeight = options.peekHeight;
410-
if(peekHeight){
411-
bottomSheet.preferredSheetHeight = peekHeight;
410+
if (peekHeight) {
411+
(bottomSheet.presentationController as MDCBottomSheetPresentationController).preferredSheetHeight = peekHeight;
412412
}
413+
(bottomSheet.presentationController as MDCBottomSheetPresentationController).ignoreKeyboardHeight = true;
413414

414415
if (options.trackingScrollView) {
415416
const scrollView = this.getViewById(options.trackingScrollView);

0 commit comments

Comments
 (0)