Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2116 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2459
1
thg 1 22
2745
2
thg 7 22
4746
0
thg 4 22
2801
1
thg 1 22
4601