Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

onKeyDown event to Avform does not work for the select dropdown, no other event present #246

Open
AbhaysinghBhosale opened this issue May 13, 2021 · 0 comments

Comments

@AbhaysinghBhosale
Copy link

We are using onKeyDown to detect if default values in form are changed or same as when form loaded.

Exp: If form is opened for the edit purpose we disabled form and when user enter any input check original data in state and data in input is same or updated. It its different we enabled "Update" button. If values are same "Update button is disabled"

I am able to do this and check if form is updated or not and based on it able to enabled/disable "Update" button.

Is is onKeyDown event does not get triggered on select option change. Also there is no other event in form for this.

Note: I do not want to attach onchange to each input field in long form.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant