Prevent the soft keyboard from popping up when the uniapp applet clicks the input box

If you don’t need to monitor the input box, you can directly look at solution 3. This is the case for me.

Solution 1: Replace @click with @tap

But if at the same time the sub-elements are switches and so on, each needs its own function 

// 父元素设置

@tap="clickA"



// 子元素设置

@tap.stop="clickB"

Solution 2: Use WeChat official api to prevent the keyboard from popping up hideKeyboard()

Solution 3: The easiest way to force 100% non-popup is to set disabled here

Guess you like

Origin blog.csdn.net/weixin_46607967/article/details/128952018