Skip to content

fix(ios-tabs): tabstripitem tap does not change tabs#7468

Merged
dtopuzov merged 1 commit into
releasefrom
djenkov/ios-tabs-fixes
Jul 8, 2019
Merged

fix(ios-tabs): tabstripitem tap does not change tabs#7468
dtopuzov merged 1 commit into
releasefrom
djenkov/ios-tabs-fixes

Conversation

@ADjenkov

@ADjenkov ADjenkov commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

Note 1: tabBar.delegate was cleared after some time. Storing it in a local var and clearing on dispose.
Note 2: Enable tabStrip items selection only if no current animation in progress.

Fix #7435
Fix -> Changing fast tabStrip items causes glitches and content items problem

@ADjenkov ADjenkov self-assigned this Jul 5, 2019
@cla-bot cla-bot Bot added the cla: yes label Jul 5, 2019
@ADjenkov ADjenkov requested review from MartoYankov and manoldonev and removed request for MartoYankov July 5, 2019 13:13
@vchimev vchimev changed the title fix(android-tabs): tabstripitem tap does not change tabs fix(ios-tabs): tabstripitem tap does not change tabs Jul 5, 2019
@dtopuzov dtopuzov merged commit 6e1e0e8 into release Jul 8, 2019
public tabBarShouldSelectItem(tabBar: MDCTabBar, item: UITabBarItem): boolean {
return true;
const owner = this._owner.get();
const shouldSelectItem = owner._canSelectItem;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check whether owner is not null prior to using it (weak reference)

@ADjenkov ADjenkov deleted the djenkov/ios-tabs-fixes branch August 9, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants