Skip to content

Commit

Permalink
Fix most PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Jul 1, 2024
1 parent 25ed4a3 commit e7c6c26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/pages/docs/text-field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in a form.
enabled: enabled,
label: 'Email',
hint: '[email protected]',
footer: Text('Enter your email associated with your Forui account.'),
);
```
</Tabs.Tab>
Expand Down Expand Up @@ -172,7 +173,12 @@ FTextField.multiline(
const SizedBox(height: 30),
FButton(
rawLabel: const Text('Login'),
onPress: () => _formKey.currentState!.validate(),
onPress: () {
if (!_formKey.currentState!.validate()) {
// Handle errors here.
return;
}
},
),
],
),
Expand Down

0 comments on commit e7c6c26

Please sign in to comment.