Skip to content

Store initialValue before dispatching 'focus' which might reset it #5

@holyjak

Description

@holyjak

I think that node.initialValue should be stored before dispatching focus:

event.initEvent('focus', false, false);

The reason is that the input might have a custom onFocus handler that likely changes the component state -> triggers rerender -> resets the value according to the state.

Thank you!

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