Skip to content

Commit

Permalink
fix(ios): only animate large title if back button is in start slot (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Nov 6, 2019
1 parent ab9d3b2 commit cace1b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/utils/transition/ios.transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ const getBackButton = (refEl: any, backDirection: boolean) => {
const activeHeader = parentHeader && !parentHeader.classList.contains('header-collapse-condense-inactive');
const backButton = buttons.querySelector('ion-back-button');
const buttonsCollapse = buttons.classList.contains('buttons-collapse');
const startSlot = buttons.slot === 'start' || buttons.slot === '';

if (backButton !== null && ((buttonsCollapse && activeHeader && backDirection) || !buttonsCollapse)) {
if (backButton !== null && startSlot && ((buttonsCollapse && activeHeader && backDirection) || !buttonsCollapse)) {
return backButton;
}
}
Expand Down

0 comments on commit cace1b3

Please sign in to comment.