File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
WooCommerce/Classes/ViewRelated Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ private extension ProductFormTableViewDataSource {
208208 productStatus: productStatus,
209209 placeholder: placeholder,
210210 textViewMinimumHeight: 10.0 ,
211- dismissOnReturn : true ,
211+ shouldDismissOnReturn : true ,
212212 isScrollEnabled: false ,
213213 onNameChange: { [ weak self] ( newName) in self ? . onNameChange ? ( newName) } ,
214214 style: . headline)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ final class EnhancedTextView: UITextView {
66
77 var onTextChange : ( ( String ) -> Void ) ?
88 var onTextDidBeginEditing : ( ( ) -> Void ) ?
9- var dismissOnReturn : Bool = false
9+ var shouldDismissOnReturn : Bool = false
1010
1111 var placeholder : String ? {
1212 didSet {
@@ -89,7 +89,7 @@ extension EnhancedTextView: UITextViewDelegate {
8989 shouldChangeTextIn range: NSRange ,
9090 replacementText text: String ) -> Bool {
9191
92- if dismissOnReturn && text == " \n " {
92+ if shouldDismissOnReturn && text == " \n " {
9393 textView. resignFirstResponder ( )
9494 return false
9595 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ final class LabeledTextViewTableViewCell: UITableViewCell {
88 var productStatus : ProductStatus
99 var placeholder : String ? = nil
1010 var textViewMinimumHeight : CGFloat ? = nil
11- var dismissOnReturn : Bool = false
11+ var shouldDismissOnReturn : Bool = false
1212 var isScrollEnabled : Bool = true
1313 var onNameChange : ( ( _ text: String ) -> Void ) ? = nil
1414 var onTextDidBeginEditing : ( ( ) -> Void ) ? = nil
@@ -33,7 +33,7 @@ final class LabeledTextViewTableViewCell: UITableViewCell {
3333 productTextField. isScrollEnabled = viewModel. isScrollEnabled
3434 productTextField. onTextChange = viewModel. onNameChange
3535 productTextField. onTextDidBeginEditing = viewModel. onTextDidBeginEditing
36- productTextField. dismissOnReturn = viewModel. dismissOnReturn
36+ productTextField. shouldDismissOnReturn = viewModel. shouldDismissOnReturn
3737 configureProductStatusLabel ( productStatus: viewModel. productStatus)
3838 applyStyle ( style: viewModel. style)
3939 }
You can’t perform that action at this time.
0 commit comments