MDBInput required flag error - Received `true` for a non-bo


Topic: MDBInput required flag error - Received `true` for a non-boolean attribute `reqiured`.

jammerxd2 pro premium priority asked a year ago

Expected behavior Setting the required flag on an MDBInput element does not generate a console error

Actual behavior Setting the required flag on an MDBInput element generates a console error:

Resources (screenshots, code snippets etc.) enter image description here

Code Snippet:

            <div className="my-3" key={item.nameId}>
                <p>{item.description}</p>
                <MDBInput label={item.name} id={item.nameId} type='text' value={generalConfigValues[item.nameId]} onChange={(e)=>{changeConfigValue(item.nameId,e.target.value)}} autoComplete='off' reqiured/>
            </div>

Even your own basic example from your documentation has this issue - https://mdbootstrap.com/docs/react/forms/validation/#section-basic-example


mlazaru staff answered a year ago

There is a typo in your code: reqiured instead of required.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 6.2.0
  • Device: PC
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes