Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBInput : inputRef show error

Yohana Habsari priority 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

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.0.0
  • Device: PC
  • Browser: chrome
  • OS: WIndows
  • Provided sample code: Yes
  • Provided link: No
Tags