Commit 94879da 1 parent b67ff63 commit 94879da Copy full SHA for 94879da
File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @fabrix-framework/unstyled " : patch
3
+ ---
4
+
5
+ Fix build error
Original file line number Diff line number Diff line change @@ -60,16 +60,12 @@ const tableView = (props: TableComponentProps) => {
60
60
) ;
61
61
} ;
62
62
63
- const formView = ( props : FormComponentProps ) => {
64
- return (
65
- < div role = "form" >
66
- { props . renderFields ( ) }
67
- { props . renderSubmit ( ( { submit } ) => (
68
- < button onClick = { ( ) => submit ( ) } > Submit</ button >
69
- ) ) }
70
- </ div >
71
- ) ;
72
- } ;
63
+ const formView = ( props : FormComponentProps ) => (
64
+ < form role = "form" { ...props . getAction ( ) } >
65
+ { props . renderFields ( ) }
66
+ < button type = "submit" > Submit</ button >
67
+ </ form >
68
+ ) ;
73
69
74
70
const FormFieldWrapper = (
75
71
props : React . PropsWithChildren <
You can’t perform that action at this time.
0 commit comments