Skip to content

Commit 775de33

Browse files
committed
Auto-confirm the selected country and state in the address form
1 parent d3c84c4 commit 775de33

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Address Edit/CountrySelectorCommand.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ final class CountrySelectorCommand: ObservableListSelectorCommand {
3131

3232
func handleSelectedChange(selected: Country, viewController: ViewController) {
3333
self.selected = selected
34+
viewController.navigationController?.popViewController(animated: true)
3435
}
3536

3637
func isSelected(model: Country) -> Bool {

WooCommerce/Classes/ViewRelated/Orders/Order Details/Address Edit/StateSelectorCommand.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ final class StateSelectorCommand: ObservableListSelectorCommand {
3131

3232
func handleSelectedChange(selected: StateOfACountry, viewController: ViewController) {
3333
self.selected = selected
34+
viewController.navigationController?.popViewController(animated: true)
3435
}
3536

3637
func isSelected(model: StateOfACountry) -> Bool {

0 commit comments

Comments
 (0)