Add React File input (MDBFileInput) to a form


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

vds-admin asked 6 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 premium answered 6 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


vds-admin commented 6 years ago

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
  • User: 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
About author