Skip to content
Snippets Groups Projects
Unverified Commit 2857e65c authored by Rich Howell's avatar Rich Howell Committed by GitHub
Browse files

Merge pull request #218 from ezfe/master

Fix enter to create accounts
parents 29124f62 55b9a0e7
No related branches found
No related tags found
No related merge requests found
...@@ -938,10 +938,6 @@ export function ModalButtons({ ...@@ -938,10 +938,6 @@ export function ModalButtons({
style style
]} ]}
> >
{/* Add a dummy button first so that when a user
presses "enter" they do a normal submit, instead of
activating the back button */}
<Button data-hidden={true} style={{ display: 'none' }} />
{leftContent} {leftContent}
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
{children} {children}
......
...@@ -146,7 +146,9 @@ function CreateLocalAccount({ modalProps, actions, history }) { ...@@ -146,7 +146,9 @@ function CreateLocalAccount({ modalProps, actions, history }) {
)} )}
<ModalButtons> <ModalButtons>
<Button onClick={() => modalProps.onBack()}>Back</Button> <Button onClick={() => modalProps.onBack()} type="button">
Back
</Button>
<Button primary style={{ marginLeft: 10 }}> <Button primary style={{ marginLeft: 10 }}>
Create Create
</Button> </Button>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment