jeudi 30 mai 2019

How to prevent pasting text in ember input helper?

I'm using ember input helper to get some value in the application. The text field should not allow any text to be pasted. (Something like re-enter some value)

I've just tried



This didn't work. But in normal html, The following works.

<input value=inputText onpaste="return false">

But the problem here is no two-way binding (which supports in ember input helper).




Aucun commentaire:

Enregistrer un commentaire