Skip to content

Commit 46537a7

Browse files
committed
Dismiss keyboard on scroll CouponRestrictions
1 parent 3997917 commit 46537a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)