Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2125 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 22
2461
1
sty 22
2749
2
lip 22
4746
0
kwi 22
2803
1
sty 22
4604