Skip to content

issue: L.focus is not a function #12707

@gvillo

Description

@gvillo

Version Number

7.54.2

Codesandbox/Expo snack

Steps to reproduce

I don't know how to reproduce it, it's happening rarely, but it happens, I don't know if it's related to #10714. I think this is happening because we are moving forward to another screen or hiding the element and for some reason react hook form can't focus it on time (or it has a delay on slow devices maybe?).

This is the error log from Sentry
Image

Expected behaviour

Avoid the error, dunno if encapsulating in a try/catch should be the best approach.

What browsers are you seeing the problem on?

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions