Skip to content

PreventDefault on touchstart not working! #12639

@legendSabbir

Description

@legendSabbir

Describe the bug

<input type="text">
<button ontouchstart={(e) => e.preventDefault()}>click</button>

While the input has focus clicking the button on a touch device shouldn't take the focus away from the input . In svelte 4 it is working fine . I'm guessing under the hood passive: true is added .

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions