-
Notifications
You must be signed in to change notification settings - Fork 49
Wrong selection when another TextWatcher was added #19
Copy link
Copy link
Open
Description
Thanx for the library!
For example I have two maskedEditTexts one below other and for the first one I just add another empty TextWatcher
maskedEditText.addTextChangedListener(object :TextWatcher{
override fun afterTextChanged(s: Editable?) {
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
}
})
I receive such behaviour:

Both have mask and hint +7 ### ###-##-##
Workaround is to set empty string as text programmatically before any user action.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels