Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #142 - Delete project should not be the default when pressing enter #156

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

jeremyd
Copy link
Contributor

@jeremyd jeremyd commented Sep 11, 2017

As Jason noticed, pressing enter key when focused on an environment var would call the Delete Project button. Moving this button outside the form ensures this doesn't happen.

<ButtonConfirmAction btnLabel="Delete Project" onConfirm={() => this.onProjectDelete()} onCancel={this.onProjectCancel} btnClass="btn btn-link text-danger">
Are you sure you want to <b>DELETE</b> this project?
</ButtonConfirmAction>
</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indent children of the wrapper div 💃

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, I'll fix this in the next PR incoming! ta!

@jeremyd jeremyd merged commit d632d5c into master Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants