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 #730. Focus and blur the search input when opening and closing. #732

Merged
merged 2 commits into from
Oct 1, 2015

Conversation

miketaylr
Copy link
Member

r? @magsout

I also noticed that the close button was submitting the form, apparently the default type for <button> is type=submit. TIL.

@miketaylr
Copy link
Member Author

Blah, ignore the test failures. I'm working on that in #728

@@ -48,7 +48,7 @@
<span class="wc-Navbar-link-icon wc-Icon wc-Icon--search" aria-hidden="true"></span>
</div>
<input class="wc-SearchBar-input" autofocus name="q" placeholder="Search by keyword"/>
<button class="r-ResetButton wc-SearchBar-icon wc-SearchBar-icon--button js-SearchBarClose" ara-hidden="true">
<button class="r-ResetButton wc-SearchBar-icon wc-SearchBar-icon--button js-SearchBarClose" ara-hidden="true" type="button">

This comment was marked as abuse.

magsout added a commit that referenced this pull request Oct 1, 2015
Fixes #730. Focus and blur the search input when opening and closing.
@magsout magsout merged commit a56e515 into master Oct 1, 2015
@magsout
Copy link
Member

magsout commented Oct 1, 2015

r+

@magsout magsout deleted the issues/730/1 branch October 1, 2015 09:48
@miketaylr
Copy link
Member Author

Thanks!

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.

2 participants