Today, we encountered a bug in the wechat applets for the Internet of Things developed by the uni-App framework used by the company. The two input switches on the login page caused the flash of the keyboard after a certain period. Spent a day to find the reason, and then went to the official website of the quick experience debugging micro channel small program version of the example found that there is also this problem, suddenly feel that the water is too deep, but the problem has to be solved can only be hard to scalp. Set the focus attribute of the corresponding input box to true for each click, and set the focus attribute to false when the input loses focus. The code is posted below: