Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2121 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 22
2460
1
gen 22
2747
2
lug 22
4746
0
apr 22
2803
1
gen 22
4603