Skip to content

Conversation

@crazytonyli
Copy link
Contributor

Description

The crash happens because the first screen and the second screen both have a rightBarButtonItem, whose action calls the same function (eventually). When double-tapping the "Skip" button, the first tap is handled by the first screen SiteIntentViewController, and the second tap is handled by the second screen SiteDesignContentCollectionViewController. Both bar button items trigger the same code: WizardNavigation.nextStep. The internal step of WizardNavigation is not updated because the view controllers are still transitioning.

This PR fixes the issue by disabling the second Skip button during the push animation.

Testing instructions

Enter the WordPress.com site creation flow, and double-tap the Skip button.

@crazytonyli crazytonyli added this to the 26.6 milestone Dec 11, 2025
@crazytonyli crazytonyli requested a review from kean December 11, 2025 10:25
@sonarqubecloud
Copy link

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30129
VersionPR #25057
Bundle IDcom.jetpack.alpha
Commit8722d52
Installation URL21o9kr1bm55d0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30129
VersionPR #25057
Bundle IDorg.wordpress.alpha
Commit8722d52
Installation URL28040cqndn7v8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

fetchSiteDesigns()

// Disable the button temporarily during the transition animation.
navigationItem.rightBarButtonItem?.isEnabled = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there different ways to address it? It seems like a fix for a symptom rather than the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants