OTPFieldView icon indicating copy to clipboard operation
OTPFieldView copied to clipboard

Clear text field

Open chaimgross opened this issue 5 years ago • 3 comments

Can't find a way to clear text field

chaimgross avatar Nov 05 '20 07:11 chaimgross

Hi - i'm also having the same issue. If wrong OTP is entered, need to clear the whole textfields.. how to do that ? Please reply

annathomasQB avatar Nov 26 '20 10:11 annathomasQB

Hi,

I got to make it work by calling the public func initializeUI(). I could see that previously initialize otpviews were removed in this particular function. So I assume it doesn't have any memory issues, and is the standard expected flow for clearing the OTP fields. Please correct if wrong @Root-vb

annathomasQB avatar Nov 26 '20 10:11 annathomasQB

OTPFieldView.initializeUI() for clearing textfield

eldhojohnson avatar Jan 11 '21 15:01 eldhojohnson