Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2119 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 22
2459
v15 - onchange not trigerred ? แก้ไขแล้ว
1
ม.ค. 22
2745
2
ก.ค. 22
4746
0
เม.ย. 22
2801
1
ม.ค. 22
4602