After entering text in the Layer For Mobile pop-up window, click the Cancel OK button to fail (you need to click twice)

Layer For Mobile is used in the webapp to pop up a pop-up window. After modifying the nickname and inputting text, in the ios mobile phone, if you don't click to put away the keyboard first, the two buttons will be invalid after clicking...

The methods for the two buttons are written here -->

In the end, only the click event of the button can be singled out. . . Discovery will still be invalid.

Then you can only try touchstart. . . Found it.

Solution: The layer button click event is written and written, and the touchstart method is used;

code show as below:

 

Note: If click and touch events are mixed, it may cause click penetration.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324890261&siteId=291194637