Add React File input (MDBFileInput) to a form


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

vds-admin asked a year 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 a year 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 a year ago

Thank you for your prompt response.


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.8.4
  • Device: PC
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No
About author