Skip to content

onChange issue with custom input #636

Open
@tdhung80

Description

@tdhung80

Hi,

In case of custom input, when i clicked on a Suggestion, it would trigger a Change event by MouseEvent, onChange is invoked but the event target is not the input, that would cause a problem if there is a custom code in onChange of the input.

`
key: 'maybeCallOnChange',

value: function maybeCallOnChange(event, newValue, method) {

  ...
  ...

  if (newValue !== value) {
    onChange(event, { newValue: newValue, method: method });
  }

}

`

My Bests,
Hung Tran

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