File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @hookform/devtools" ,
3- "version" : " 2.2.0 " ,
3+ "version" : " 2.2.1-beta.1 " ,
44 "description" : " React Hook Form dev tool to help debugging forms" ,
55 "main" : " dist/index.js" ,
66 "umd:main" : " dist/index.umd.development.js" ,
Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ export default ({
113113 const type = get ( value , 'ref.type' , undefined ) ;
114114 const isTouched = ! ! get ( formStateRef . current . touched , name ) ;
115115 const isNative = ( value as any ) . ref . type ;
116- const isDirty = ! ! Object . keys ( formStateRef . current . dirtyFields )
117- . length ;
116+ const isDirty = ! ! get ( formStateRef . current . dirtyFields , name ) ;
118117 const hasError = ! ! error ;
119118 const ref = get ( value , 'ref' ) ;
120119
You can’t perform that action at this time.
0 commit comments