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

Add clear button to search bar #33

Open
RebootJeff opened this issue Dec 23, 2015 · 1 comment
Open

Add clear button to search bar #33

RebootJeff opened this issue Dec 23, 2015 · 1 comment

Comments

@RebootJeff
Copy link

At first glance, it seems like the HTML would simply need something like:

<form>
  <div class="mui-textfield">
    <input id="monsters-search-bar" placeholder="Search for Pokémon" type="text"
           spellcheck="false" autocorrect="off" autocomplete="off"/>
    <button type="reset" class="mui-btn mui-btn--flat">X</button>
  </div>
</form>

but then form submission would need to be disabled via JavaScript(?)

Also, I did a quick test just inside Chrome DevTools, and adding the <form> breaks the ability to search 😞 so more investigation is needed.

@nolanlawson
Copy link
Owner

Nice feature idea! I wish MUI supported this out-of-the-box, though. :(

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

No branches or pull requests

2 participants