Topic: Add React File input (MDBFileInput) to a form

free asked 5 years ago


Hi,

I cannot manage to add a file input to one of my existing form. It seems that the component "MDBFileInput" contains a form element within producing the following error message:

Warning: validateDOMNesting(...): <form> cannot appear as a descendant of <form>.

Please advise. Many thanks for your time.



Jakub Mandra staff answered 5 years ago


Hi,

Yes indeed, it is made as an input wrapped inside the tag. It obviously needs to be refactored then.

Thank you for posting the problem, we will handle it as soon as possible.

Best,

Jakub


free commented 5 years ago Edit Delete

Thank you for your prompt response.




Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.8.4
  • Device: PC
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No