“Invalid form control” only in Google Chrome

前端 未结 13 1665
感情败类
感情败类 2020-11-29 03:32

The code below works well in Safari but in Chrome and Firefox the form will not submit. Chrome console logs the error An invalid form control with name=\'\' is not fo

13条回答
  •  渐次进展
    2020-11-29 04:26

    try to use proper tags for HTML5 controls Like for Number(integers)

    
    

    for Decimals or float

     
    

    step='Any' Without this you cannot submit your form entering any decimal or float value like 3.5 or 4.6 in the above field.

    Try fixing the pattern , type for HTML5 controls to fix this issue.

提交回复
热议问题