Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2138 Vizualizări

I have a field that should be filled using a Qr-code scanner,

When the user scans the codes I take the values and do some process on them using @api.onchange but the method only triggers when the user clicks outside the field,

I want the method to trigger without the clicking outside the field step in order to make the user experience easier.

How Can I achieve that?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

To trigger the method without requiring the user to click outside the field, you will have to try using js to listen for changes in the input field and call the method accordingly. 
similar examples are available in the web

Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
nov. 22
2494
1
ian. 22
2782
2
iul. 22
4754
0
apr. 22
2833
1
ian. 22
4624