Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dispatchOpenEvent method triggered when the list is toggled #8

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

kkarpieszuk
Copy link
Contributor

Adds dispatchOpenEvent method triggered when the list is toggled

You can see how it is being used in https://github.com/awesomemotive/wpforms-plugin/pull/8341/commits/5948bad23d7209c8f4aced402fd13750e2527dab (admin.js file)

@kkarpieszuk
Copy link
Contributor Author

@mahdiyazdani could you review this one as well?

Copy link
Member

@mahdiyazdani mahdiyazdani left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. Please see my (minor) comments below:

  1. To maintain consistency with other event variables in the library, I recommend renaming the variable to toggleEvent.

  2. Additionally, the event name should align with the naming convention used for other events in the library. You might consider renaming it to wpforms_multiselect_checkbox_list_toggle for better consistency.

@kkarpieszuk
Copy link
Contributor Author

thank you Mahdi, for the review, I applied suggested changes, please check again

Copy link
Member

@mahdiyazdani mahdiyazdani left a comment

Choose a reason for hiding this comment

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

Thank you @kkarpieszuk 🙌

@mahdiyazdani mahdiyazdani assigned cheh and unassigned mahdiyazdani Nov 9, 2023
@cheh cheh merged commit 619ee62 into master Nov 9, 2023
3 checks passed
@cheh cheh deleted the 7-list-open-event branch November 9, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants