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

Hide on input not working for IE 10 & IE 11 #83

Closed
theptrk opened this issue Oct 15, 2014 · 1 comment
Closed

Hide on input not working for IE 10 & IE 11 #83

theptrk opened this issue Oct 15, 2014 · 1 comment

Comments

@theptrk
Copy link

theptrk commented Oct 15, 2014

Using the example code I can't get placeholders to hide on input; rather it hides on focus

<!doctype html>
<html data-placeholder-focus="false">
    <head>
        <meta charset="utf-8">
        <title>Placeholders.js Default Config</title>
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
    </head>
    <body class="placeholder-example">
        <input type="text" placeholder="I have a placeholder!"><br>
        <input type="password" placeholder="Password placeholders!"><br>
        <textarea placeholder="We all hide on input!"></textarea>
        <script src="assets/js/placeholders.min.js"></script>
    </body>
</html>

Doesn't work on:
IE 11.0.9600.17041
IE 10.0.9200.16866

Works on:
IE 9.0.811216421 (hides on focus)

@jamesallardice
Copy link
Owner

That's because IE10 and 11 have native support for the placeholder attribute. The polyfill will not take effect. Hide on focus is the default behaviour of native IE placeholders.

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