opened
jedwards1211
username_0
<!--

👋 Hey, thanks for taking an interest in 🏁 Final Form!

-->

### Are you submitting a **bug report** or a **feature request**?

bug report

### What is the current behavior?

`toPath` splits `'foo["bar.baz"]'` to `['foo', '"bar', 'baz"']`

It's impossible to use a nested object key with `.` in the name and not clean to use a nested object key that's not a JS identifier.  `'foo["bar.baz"]'` is an idiomatic JS pathstring supported by libs like `lodash.get`:

```js
_.get({foo: {"bar.baz": 3}}, 'foo["bar.baz"]') // 3
```

### What is the expected behavior?

It gets split to `['foo', 'bar.baz']`

### What's your environment?

not relevant
toPath doesn't support quoted strings inside brackets
issue
closed
erikras
username_1
issue
created
erikras
username_1
Published fix in [`v4.20.3`](https://github.com/final-form/final-form/releases/tag/v4.20.3).
comment