Skip to content

focus/change/blur is not a function #472

Description

@FC-jan

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

We get live bugsnag reports about focus/change/blur not being a function since our latest release:

TypeError P.blur is not a function
TypeError P.change is not a function
TypeError P.focus is not a function

Sadly, I don't know how our prod users achieve the error.
Looking into the prod source, the same places' breakpoints trigger on blur/change/focusing a react-final-form input.

Main change suspected that started to cause this:

-    "final-form": "^4.20.6",
-    "final-form-arrays": "^3.0.2",
+    "final-form": "^4.20.9",
+    "final-form-arrays": "^3.1.0",

Going through the changeset from 4.20.7 to 4.20.8, 33e551f caught my eye. It changed the blur/change/focus function handling and may not work in all cases.

What is the expected behavior?

Focus/Change/Blur should be a function if existing, and only be called if it's a function.

Sandbox Link

Sadly none.

What's your environment?

Browser: Current Chrome.

Our project is huge, but related to this project should be these dependencies:

"final-form": "^4.20.9",
"final-form-arrays": "^3.1.0",
"final-form-calculate": "^1.3.2",
"react": "^17.0.2",
"react-final-form": "^6.5.9",
"react-final-form-arrays": "^3.1.4",

Other information

Sorry for not providing more info outright, I'll try to provide what I can when asked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions