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

Phone Number disappears on "clear successfully completed form" event #6

Closed
yaroslav-borodii opened this issue May 16, 2023 · 1 comment
Assignees

Comments

@yaroslav-borodii
Copy link
Collaborator

Contact person(person, e-mail):

@yaroslav-borodii

Description:

When I activate CLEAR SUCCESSFULLY COMPLETED FORM?, Smart Phone Field breaks on form submit. I guess it happens on NF reinitialise.

Steps/Link to reproduce the bug:

  1. Create a New Ninja Form;
  2. Add Smart Phone Field to the Form;
  3. Go to the Advanced tab at the Form Builder Page -> Display Settings -> activate CLEAR SUCCESSFULLY COMPLETED FORM?
  4. Deactivate HIDE SUCCESSFULLY COMPLETED FORM?
  5. Save it;
  6. Create Testing page;
  7. Add Ninja Form which we created before;
  8. Go on Testing page;
  9. Try to submit form
  10. Smart Phone Field should be broke.

How does the bug behave?

As I said, this breaks the logic and does not allow you to fill out form again

What is the expected correct behavior?

The form should look the same as when you load the page, with a list of countries and all the logic of the work.

Important logs and/or screenshots:

Settings:
image

On page load:
image

After submit:
image

Environment (browser, device, software version, operating system):

Chrome, MacOS, Ninja Forms Latest, Smart Phone Latest, WordPress Latest, PHP 8.0

Possible Fix:

Reinitialise intltelinput after clearing the form

yaroslav-borodii added a commit that referenced this issue May 19, 2023
yaroslav-borodii added a commit that referenced this issue Jul 24, 2023
- Add JavaScript Standard
- Add package-lock.json to .gitignore
- Remove dependency to jQuery for Frontend part
- Move JavaScript files to footer
@yaroslav-borodii
Copy link
Collaborator Author

yaroslav-borodii commented Jul 24, 2023

Update

Released in v1.2.0

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

No branches or pull requests

2 participants