Trigger Text Changed event on pasting


#1

Hi.

I have a text field and a submit button. The button is initially disabled and, it gets enabled only if at least 3 characters are typed into the text field. For this, I’m using a Text Changed event on the text field that works just fine when typing.

The problem is that it doesn’t seem to work when pasting text from the right click menu. It works when pasting text with the keyboard shortcut but, on the mobile this can be hardly achieved and anyway, we don’t know how the users will paste if they will.

So, if the users will paste the text (which is somehow encouraged in my situation) the button will not be enabled and they will be stuck

I was thinking of simulating a timeout to continuously check the text field instead of Text Changed event, but I’m afraid it is too much for this situation.

Does anybody have a better idea?

Thanks!