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

I'm getting "Error: type property can't be changed" #22

Open
diegoemerique opened this issue Dec 21, 2018 · 1 comment
Open

I'm getting "Error: type property can't be changed" #22

diegoemerique opened this issue Dec 21, 2018 · 1 comment

Comments

@diegoemerique
Copy link

Hello, when I tried to use this plugin my browser shows that error:
Uncaught Error: type property can't be changed

when it trys to run this line:
this.find('[type=submit]').addClass('disableAutoFillSubmit').attr('type', 'button');

I think the problem is at .attr('type', 'button');

Why it needs to change type='submit' to type='button'?

Information

  • OS: MacOS Sierra v 10.12.6
  • Browser: chrome v 71.0.3578.98 64 bits
  • Version: 71.0.3578.98 (Official Build) (64-bit)
@terrylinooo
Copy link
Owner

This is because we use the click event to active a callback.
for exapme: validate your form validation.

I don't have a Mac to test this issue.
Could you help me to try this way:

Replace

.attr('type',

Instead of

.prop('type',

Thanks.

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