File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Sources/FloatingLabelTextFieldSwiftUI Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,17 @@ public struct FloatingLabelTextField: View {
101101 } else {
102102 TextField ( " " , text: $textFieldValue. animation ( ) , onEditingChanged: { ( isChanged) in
103103 withAnimation {
104- self . isSelected = isChanged
104+ DispatchQueue . main. async {
105+ self . isSelected = isChanged
106+ }
107+ }
108+
109+ DispatchQueue . main. async {
110+ self . isShowError = self . notifier. isRequiredField
105111 }
106112
107113 self . validtionChecker = self . currentError. condition
108114 self . editingChanged ( isChanged)
109- self . isShowError = self . notifier. isRequiredField
110115 arrTextFieldEditActions = self . notifier. arrTextFieldEditActions
111116 } , onCommit: {
112117 self . isShowError = self . notifier. isRequiredField
You can’t perform that action at this time.
0 commit comments