跳至内容
菜单
此问题已终结

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

形象
丢弃
相关帖文 回复 查看 活动
1
11月 22
2503
1
1月 22
2791
2
7月 22
4766
0
4月 22
2837
1
1月 22
4640