diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 0be1e6ae21f..6aec332f5ed 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -4,6 +4,7 @@ 23.5 ----- - [internal] POS code was moved to its own module, including POS specific color and image assets. [https://github.com/woocommerce/woocommerce-ios/pull/16176] +- [*] Fix Create Coupon screen scrolling issue. [https://github.com/woocommerce/woocommerce-ios/pull/16218] 23.4 diff --git a/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift b/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift index 9f646a2b880..6a7c8c44444 100644 --- a/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift +++ b/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift @@ -285,6 +285,7 @@ struct AddEditCoupon: View { } } } + .scrollDismissesKeyboard(.immediately) } .sheet(isPresented: $showingSelectProducts) { ProductSelectorNavigationView(configuration: .productsForCoupons, diff --git a/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictions.swift b/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictions.swift index 7bc93550c7d..35552869f74 100644 --- a/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictions.swift +++ b/WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictions.swift @@ -151,6 +151,7 @@ struct CouponRestrictions: View { .padding(.horizontal, insets: geometry.safeAreaInsets) .frame(maxWidth: .infinity, alignment: .leading) } + .scrollDismissesKeyboard(.immediately) .background(Color(.listForeground(modal: false))) .ignoresSafeArea(.container, edges: [.horizontal]) .sheet(isPresented: $showingExcludeProducts) {