Skip to content

[React] Cursor jumps when using Input component with redux-form #246

@ClementParis016

Description

@ClementParis016

I don't know how familiar you are with redux-form, but I'm having issues when using it alongside mui's Input component.

If I use this component to render a form field, the cursor jumps to the end of the input every time I try to insert something at the beginning or in the middle. If I use a standard html <input> tag, it works correctly.
I've been spending hours trying to diagnose the issue without success. It seems that some code inside mui's Input (and maybe TextField) is conflicting with the way redux-form tries to control the input.

Do you have any idea on what could cause the cursor to jump around?

I've made a reproduction on Codesandbox: https://codesandbox.io/s/zr1xzxop8l

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions