-
Notifications
You must be signed in to change notification settings - Fork 232
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
IE9 and IE8 page refresh leaves input fields blank until clicked into/out #63
Comments
https://github.com/mathiasbynens/jquery-placeholder doesn't experience the issue detailed above. |
Yeah I've got the same issue. Nothing till the input is clicked on and loses focus. |
I don't know what causes this. I can reproduce it but no idea on a fix yet. Will look into it further when I get a chance. If anyone else has any thoughts a PR would be welcome ;) |
If changes to the page are made (comment out a block of HTML) and then refresh, the placeholders come back. Refreshing again, with no changes made to the HTML, causes them to break again. |
I'm getting this issue in IE9 as well. Was there a solution? |
After 6 months, looks like the best solution is to use a library like the one I linked to above that doesn't experience this issue. |
Hi guys, Has there been any progress on this fix? Ive tried using the library mentioned above but that only served to amplify the amount of empty placeholders. |
One fix would be to briefly give focus to all inputs and textareas when the page loads. So, using the jQuery, it would be something like: That would make the page scroll, so if you have all the content in a container, you should also temporarily make that Have tested this approach and it seems to work both in IE8 and IE9. |
I have the same issue: v3.1.0 (jamesallardice/Placeholders.js#v3.1.0) |
I was able to resolve this by calling
|
I'm also experiencing this. It seems like the browser is trying to be helpful and repopulating the form after refresh. In my tests, if I populate a form element this element is preserved. It seems like the other elements may be getting repopulated with empty string. |
Ditto on @mike-zarandona solution, seems to do the trick for me. |
Looks like same issue #54 |
It works! Thanks! @mike-zarandona |
When I load a page fresh in IE9/IE8 the script works fine and displays placeholders.
If I refresh the page after it has loaded, the input fields are blank until I click into and out of them.
Has anybody else noticed this? Fix out there?
I
The text was updated successfully, but these errors were encountered: