Skip to content

Conversation

@VictoriaBeilsten-Edmands
Copy link
Collaborator

@VictoriaBeilsten-Edmands VictoriaBeilsten-Edmands commented Jan 16, 2025

Adds two optional parameters (submitButton and submitOnReturn ) to VisitInput.
submitButton allows the submit button to be included and is true by default.
submitOnReturn allows onSubmit to be called on enter key down and is false by default.
Also added tests, stories and a handleSubmit function in the story to show the behaviour.

@akademy akademy merged commit 255abb4 into main Jan 27, 2025
1 check passed
@akademy akademy deleted the vbe/visitinput-return branch January 27, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants