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

Keep the init visible state #210

Open
nflucian opened this issue May 28, 2014 · 1 comment
Open

Keep the init visible state #210

nflucian opened this issue May 28, 2014 · 1 comment

Comments

@nflucian
Copy link

If the input is display:none, after applied this plugin it will be visible
Fix:
on setPlaceholder function get the init visibilit state

var visible = $input.is(':visible');

and at the end

// set up the init visibility state
            if(visible) {
                $input.show();
            }
            else {
                $input.hide();
            }
@eggie5
Copy link

eggie5 commented Sep 26, 2014

Just to clarify the @nflucian answer: add that code the the beginning and end of the setPlaceholder function inside jquery-placeholder.js. Works great for me!

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