Skip to content

Commit f49c71f

Browse files
authored
Fix coupon scrolling (#16218)
2 parents 48aea2d + 0192577 commit f49c71f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
23.5
55
-----
66
- [internal] POS code was moved to its own module, including POS specific color and image assets. [https://github.com/woocommerce/woocommerce-ios/pull/16176]
7+
- [*] Fix Create Coupon screen scrolling issue. [https://github.com/woocommerce/woocommerce-ios/pull/16218]
78

89

910
23.4

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ struct AddEditCoupon: View {
285285
}
286286
}
287287
}
288+
.scrollDismissesKeyboard(.immediately)
288289
}
289290
.sheet(isPresented: $showingSelectProducts) {
290291
ProductSelectorNavigationView(configuration: .productsForCoupons,

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ struct CouponRestrictions: View {
151151
.padding(.horizontal, insets: geometry.safeAreaInsets)
152152
.frame(maxWidth: .infinity, alignment: .leading)
153153
}
154+
.scrollDismissesKeyboard(.immediately)
154155
.background(Color(.listForeground(modal: false)))
155156
.ignoresSafeArea(.container, edges: [.horizontal])
156157
.sheet(isPresented: $showingExcludeProducts) {

0 commit comments

Comments
 (0)