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

fix button not working on firefox #323

Merged
merged 1 commit into from
Dec 21, 2019
Merged

fix button not working on firefox #323

merged 1 commit into from
Dec 21, 2019

Conversation

zouri
Copy link
Contributor

@zouri zouri commented Dec 21, 2019

修复firefox下新增按钮不可用

根据w3c标准,form表单下的button的属性type缺省值是"submit",导致点击新增时会提交当前表单刷新页面。个人分析由于页面刷新导致异步的ajax没有完整就被中断掉了。

解决方式就是显性的指定button类型为button

@ffdfgdfg
Copy link
Contributor

感谢

@ffdfgdfg ffdfgdfg merged commit eee05ab into ehang-io:dev Dec 21, 2019
kiririx pushed a commit to kiririx/nps that referenced this pull request Jul 26, 2022
fix button not working on firefox
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.

2 participants