Swipe Actions stop Form Input click to edit working; workaround

If you have a form and use Swipe Actions on the same scene, the form’s input fields may not respond to a click into them to become focused to edit. ( Entering text ).

The Swipe Action event will eat up the click actions.

A work around is run the focus() function with an onclick event directly in each input.

Example with the onclick="focus() call.

<form action="demo_form.asp">
  First name: <input type="text" name="fname" onclick="focus()"><br>
  Last name: <input type="text" name="lname" onclick="focus()"><br>
  <input type="submit" value="Submit">

Example Project showing two forms one with and one without the calls.
FormsWithSwipeAction.hype.zip (56.1 KB)


This is a great tip, Thanks Mark!

1 Like