Skip to content

HexColorInput text cursor moves to end of input field after each typed character #198

Open
@kpalmvik

Description

@kpalmvik

Hi! Thank you for a very powerful library! 👏

Looking at the react-colorful-hex-input-demo it seems that the default behavior is to move the text cursor to the end of the text (the entire color code) immediately after each character I type.

For example, if I want to type the color code #123456 I need to move the cursor, using the mouse, repeatedly until I have been able to type the entire code:

typing color code input

Not sure if this is intentional or not, but I find it a bit hard to use.

Compare it with the behavior in native Chrome color picker, as illustrated on MDN :

typing chrome input

Perhaps there is already a simple way to enable a more fluid typing experience?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions