We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9bd01 commit 8bc8dabCopy full SHA for 8bc8dab
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@hookform/devtools",
3
- "version": "1.2.1",
+ "version": "2.0.0-beta.2",
4
"description": "React Hook Form dev tool to help debugging forms",
5
"main": "index.js",
6
"types": "dist/index.d.ts",
src/panel.tsx
@@ -114,7 +114,7 @@ export default ({
114
const type = get(value, 'ref.type', undefined);
115
const isTouched = !!get(formState.touched, name);
116
const isNative = (value as any).ref.type;
117
- const isDirty = get(formState.dirtyFields, name);
+ const isDirty = !!Object.keys(formState.dirtyFields).length;
118
const hasError = !!error;
119
const ref = get(value, 'ref');
120
0 commit comments