Skip to content

Commit

Permalink
Merge pull request #1334 from lucasnetau/touch-focus-event-fix
Browse files Browse the repository at this point in the history
Fix input touchstart event handling
  • Loading branch information
kevinchappell authored Jul 2, 2023
2 parents e77b81d + e46f57f commit 8188ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ function FormBuilder(opts, element, $) {

// touch focus
$stage.on('touchstart', 'input', e => {
const $input = $(this)
const $input = $(e.target)
if (e.handled !== true) {
if ($input.attr('type') === 'checkbox') {
$input.trigger('click')
Expand Down

0 comments on commit 8188ff4

Please sign in to comment.