Skip to content

Commit 096316b

Browse files
committed
Implemented viewWillDisappear and viewDidAppear in ProductMenuOrderViewController
1 parent bfb2aa3 commit 096316b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/Menu Order/ProductMenuOrderViewController.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ final class ProductMenuOrderViewController: UIViewController {
3636
configureTableView()
3737
}
3838

39+
override func viewWillDisappear(_ animated: Bool) {
40+
super.viewWillDisappear(animated)
41+
onCompletion(productSettings)
42+
}
43+
44+
override func viewDidAppear(_ animated: Bool) {
45+
super.viewDidAppear(animated)
46+
configureTextFieldFirstResponder()
47+
}
3948
}
4049

4150
// MARK: - View Configuration

0 commit comments

Comments
 (0)