Topic: Cannot focus on input
                  
                  purtzerb
                  free
                  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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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