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

Adding .hide() to input no longer works #4079

Closed
rattrick1 opened this issue Jul 13, 2012 · 5 comments
Closed

Adding .hide() to input no longer works #4079

rattrick1 opened this issue Jul 13, 2012 · 5 comments
Labels
Milestone

Comments

@rattrick1
Copy link

In 2.0.3, the following would hide an input:

<input name="txtAppAddressYears" type="text" id="txtAppAddressYears" class="hide">

(I know, this should be a hidden input, but there is a good reason why it can't be)

In 2.0.4, this no longer works and from what I can tell, it appears to be that if I remove the:

display: inline-block;

That it works properly. Any thoughts?

@mschettler
Copy link

try class="hidden"

@rattrick1
Copy link
Author

There doesn't appear to be a .hidden in the css for bootstrap. I tried it anyway in case I was crazy and it didn't work.

@mschettler
Copy link

.hidden {
display: none;
visibility: hidden;
}

line 43 of Bootstrap Responsive v2.0.4

You can also see it on line 6 of the .less

https://github.com/twitter/bootstrap/blob/master/less/responsive-utilities.less

@mdo
Copy link
Member

mdo commented Jul 13, 2012

It's likely a specificity problem. We'll add !important in 2.1.0-wip to those utility classes to ensure they work all the time, as intended (similar to our responsive utility classes).

@mdo mdo closed this as completed Jul 13, 2012
@rattrick1
Copy link
Author

@mschettler That's in the responsive css which I am not using but thank you for your help.

@markdotto Thank you for your response. Looking at the change log, I see that it's likely the refactoring of the selectors for the inputs that caused this issue in 2.0.4. For now, I will just stay on 2.0.3 instead as I tried adding my own .hide class with !important and all sorts of problems came up!

Thanks again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants