隐藏的input元素不能使用required属性,如下两种情况错误:
input
required
<input type="hidden" required /> <input type="file" required style="display: none;"/>
去掉required即可
参考:An invalid form control with name=’’ is not focusable