Skip to content

Conversation

@misam-kamal
Copy link

No description provided.

Copy link
Contributor

@dvmhmdsd dvmhmdsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for your awesome work, please resolve the below comment to continue

// As a result, this inside onChange does not refer to formHandler, so the original value does not change.

// Fix the bug using either .bind() or an arrow function (your choice).
simulateInputChange(formHandler.onChange.bind(formHandler));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could u please use arrow function as another solution here? and explain why it could work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants