MDBInput : inputRef show error


Topic: MDBInput : inputRef show error

Yohana Habsari pro premium asked 2 years ago

Expected behavior inputRef={ref}

Actual behavior Warning: React does not recognize the inputRef prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase inputref instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Resources (screenshots, code snippets etc.)

                <MDBInput
                                      className="mb-4"
                                      type="email"
                                      id="Email"
                                      label="Email"
                                      inputRef={emailref}
                                      name="email"
                                      value={email }
                                      onChange={(e) => setEmail(e.target.value)}
                />

Krzysztof Wilk staff commented 2 years ago

Hi!

Could you create a code example of your problem using i.e. our snippets or by creating a simple GitHub repository? I tried the code above and everything works on my side :/


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.0.0
  • Device: PC
  • Browser: chrome
  • OS: WIndows
  • Provided sample code: No
  • Provided link: No
Tags