Cannot focus on input


Topic: Cannot focus on input

purtzerb asked 6 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 6 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
  • User: 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