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

fix: browse is now the default button #1145

Merged
merged 1 commit into from
Sep 9, 2019
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Sep 6, 2019

Fixes #1144.

Due to HTML rules, the first button in the tree is considered to be the default one. It was the Inspect one.

We had an onSubmit function that should be triggered on the form submit, although that was not working.

I changed the form to a simple div, listen to enters on input and each button has its own click listener.

And now, Browse button is the default one!

image

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias requested a review from olizilla September 6, 2019 10:36
This was referenced Sep 8, 2019
Copy link
Member

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

I don't like it, but if we want 2 submit buttons to do two different things, then I guess this is what we gotta do.

@hacdias hacdias merged commit 903e694 into master Sep 9, 2019
@hacdias hacdias deleted the fix/browse-def-button branch September 9, 2019 14:18
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.

Inspect button selected by default
2 participants