react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

meta.error is an object instead of string in IE11

Open gelim92 opened this issue 4 years ago • 3 comments

Are you submitting a bug report or a feature request?

bug

What is the current behavior?

meta.error errors returned from field validators is an object instead of a string in IE11 browser. For example, if I returned "error!" in a field validator, meta.error is an object in the form of { 0: "e", 1: "r", 2: "r", 3: "o", 4: "r", 5: "!" } .

Also this only seems to happen on Fields which are a parent of child Fields

What is the expected behavior?

meta.error should be a string instead of an object

Sandbox Link

https://codesandbox.io/s/final-form-validation-error-ie11-lb9wc?file=/index.js

What's your environment?

Browser: Internet Explorer 11 version 11.0.9600.19596

"final-form": "4.18.6" "react-final-form": "6.3.3" "react": "16.12.0" "react-dom": "16.12.0",

gelim92 avatar Jul 08 '20 10:07 gelim92

I'm also seeing this with parent / child fields.

alexpchin avatar Oct 14 '21 12:10 alexpchin

it's not only IE, I get the same behavior in the latest chrome

pmomot avatar Jan 06 '22 16:01 pmomot

Still a problem - seeing this in Chrome as well

seunggs avatar Aug 29 '22 23:08 seunggs

Please retest with the latest version and see #1007 for the same behaviour on the Form validator.

gertdreyer avatar Jan 11 '23 15:01 gertdreyer