Skip to content

Why does react-draggable affect onChange events on mobile? #772

Open

Description

@Suryaprabha1030

I am using react-draggable.The input is inside the draggable component., but it doesn't get the value from the onChange event (input) on mobile.

Activity

  1. STRML commented on Sep 27, 2026

    @STRML
    Collaborator

    This was generated by AI during triage.

    Triage Notes

    What we've established so far:

    • On touch devices, DraggableCore listens for touchstart with passive: false and calls preventDefault, which can stop an <input> inside the draggable from focusing.
    • The cancel prop exists for this: <Draggable cancel="input, textarea"> skips drag start on those elements.

    What we still need from you (@Suryaprabha1030):

    • Does cancel="input" fix it on react-draggable 4.7.2?
    • If not: device, browser, react-draggable version, and a minimal snippet or sandbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-infoWaiting on reporter for more information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions