Skip to content

Wrong selection when another TextWatcher was added #19

@Parmakli

Description

@Parmakli

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:
maskededittext
Both have mask and hint +7 ### ###-##-##
Workaround is to set empty string as text programmatically before any user action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions