Skip to content

Commit 0c8716e

Browse files
authored
Fix a crash when double-tap the Skip button in the site creation flow (#25057)
1 parent 349e4f6 commit 0c8716e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

WordPress/Classes/ViewRelated/Site Creation/Design Selection/SiteDesignContentCollectionViewController.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ class SiteDesignContentCollectionViewController: CollapsableHeaderViewController
180180
override func viewWillAppear(_ animated: Bool) {
181181
super.viewWillAppear(animated)
182182
fetchSiteDesigns()
183+
184+
// Disable the button temporarily during the transition animation.
185+
navigationItem.rightBarButtonItem?.isEnabled = false
186+
}
187+
188+
override func viewDidAppear(_ animated: Bool) {
189+
super.viewDidAppear(animated)
190+
navigationItem.rightBarButtonItem?.isEnabled = true
183191
}
184192

185193
private func fetchSiteDesigns() {

0 commit comments

Comments
 (0)