Search code examples
javascriptreactjsreduxredux-form

Is it possible to disable default behaviour of input type email validation


I am using redux-form validation and i am little bit confusing when my input catch me an error that the value is not correct(I mean default behaviour of browser). So i would like to disable this kind of default maintenance. Is there such function that blocks it?


Solution

  • You can use the formnovalidate attribute on the element.

    Example:

    <input type="email" name="userid" formnovalidate="formnovalidate">
    

    Source: https://www.w3schools.com/tags/att_input_formnovalidate.asp