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

Search input does not clear placeholder text on focus #5

Open
clintongreen opened this issue Mar 19, 2014 · 1 comment
Open

Search input does not clear placeholder text on focus #5

clintongreen opened this issue Mar 19, 2014 · 1 comment

Comments

@clintongreen
Copy link

I just noticed that the search input does not clear placeholder text on focus. I added this to the template and it works. Thanks for the template.

$( document ).ready(function() {
$("input").focus(function() {
this.value = "";
});
});

@anselmdk
Copy link
Member

anselmdk commented Apr 6, 2014

Good catch.
Do you want to submit a pull request for it?
It would have to be placed in https://github.com/titledk/silverstripe-cloudy/blob/master/javascript/cloudy.js, and you'd need to add the input's id to it.

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