Skip to content
Permalink
Browse files

fix(content): prevent ion-searchbar from receiving padding adjustment (

…#18008)

* Fixes #18007 - check for fixed containing element and don't adjust ion-content padding.

* fix lint issue

* searchbar does not receive padding fix

* remove fixed slot check
  • Loading branch information...
marpstar authored and liamdebeasi committed May 29, 2019
1 parent fbb76e6 commit b2290a6420aab26685b10f03e0b3eb8195ca20c6
Showing with 8 additions and 0 deletions.
  1. +8 −0 core/src/utils/input-shims/hacks/scroll-padding.ts
@@ -24,6 +24,14 @@ function setScrollPadding(input: HTMLElement, keyboardHeight: number) {
if (input.parentElement && input.parentElement.tagName === 'ION-INPUT') {
return;
}
if (
input.parentElement &&
input.parentElement.parentElement &&
input.parentElement.parentElement.tagName === 'ION-SEARCHBAR'
) {
return;
}

const el = input.closest('ion-content');
if (el === null) {
return;

0 comments on commit b2290a6

Please sign in to comment.
You can’t perform that action at this time.