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: Cannot focus on input

purtzerb free asked 5 years ago


Expected behavior DOM.element.focus() should focus on the input element

Actual behavior Does not focus

Resources (screenshots, code snippets etc.) Nothing will be helpful, simple issue. I tried using refs and using document.querySelector("#idofinput").focus() and it still did not work.


Anna Morawska staff answered 5 years ago


Hi there,

could you please provide us with the sample of your code? You are trying to focus native browser input or our MDBInput component?

Best, Ania



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: Macbook pro
  • Browser: Chrome
  • OS: MacOS mojave
  • Provided sample code: No
  • Provided link: No