fix: sign in/sign up with enter key

This commit is contained in:
chenos 2022-06-14 19:09:19 +08:00
parent 8a2399d50b
commit f97b72dc55
3 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ const WithoutForm = (props) => {
createForm({
effects() {
onFormInputChange((form) => {
setFormValueChanged(true);
setFormValueChanged?.(true);
});
},
}),

View File

@ -7,7 +7,7 @@ import { SchemaComponent, useAPIClient, useCurrentDocumentTitle, useSystemSettin
const schema: ISchema = {
type: 'object',
name: uid(),
'x-component': 'Form',
'x-component': 'FormV2',
properties: {
email: {
type: 'string',

View File

@ -8,7 +8,7 @@ import { SchemaComponent, useAPIClient, useCurrentDocumentTitle, useSystemSettin
const schema: ISchema = {
type: 'object',
name: uid(),
'x-component': 'Form',
'x-component': 'FormV2',
properties: {
email: {
type: 'string',