We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b771e83 commit c121533Copy full SHA for c121533
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@hookform/devtools",
3
- "version": "2.2.0",
+ "version": "2.2.1-beta.1",
4
"description": "React Hook Form dev tool to help debugging forms",
5
"main": "dist/index.js",
6
"umd:main": "dist/index.umd.development.js",
src/panel.tsx
@@ -113,8 +113,7 @@ export default ({
113
const type = get(value, 'ref.type', undefined);
114
const isTouched = !!get(formStateRef.current.touched, name);
115
const isNative = (value as any).ref.type;
116
- const isDirty = !!Object.keys(formStateRef.current.dirtyFields)
117
- .length;
+ const isDirty = !!get(formStateRef.current.dirtyFields, name);
118
const hasError = !!error;
119
const ref = get(value, 'ref');
120
0 commit comments