-
Notifications
You must be signed in to change notification settings - Fork 212
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
Use jQuery's .prop() and add disableAutoStyle option #132
base: master
Are you sure you want to change the base?
Conversation
…selected) Also jqMigrate raises an warning on this.
When coming from an earlier jquery-selectBox version, the inline styles overwrites existing css rules
It seems you've not configured your git username/email correctly in your environment? |
Ahh, right - haven't added the other email to my account. Thanks! (As you probably saw, first real GitHub commit) If I can avoid using !important as easy as with this patch I do it. |
According to your code control
.width(settings.disableAutoStyle ? '' : select.outerWidth())
.addClass(select.attr('class'))
.attr('title', select.attr('title') || '')
.attr('tabindex', tabIndex)
.css('display', settings.disableAutoStyle ? '' : 'inline-block') if Correct me if I'm wrong 🐒 |
No, you are right. But |
So, the new option is only about the label element? The width or display property? |
Why set styles at all?
|
(4773a31) I wouldn't remove styles as there might be people who also depend on these functions of the plugin (715a346) As for the _"The most common boolean attributes are checked, selected, disabled, and readOnly, but here is a full list of boolean attributes/properties that jQuery 1.6.1 supports dynamically getting and setting with autofocus, autoplay, async, checked, controls, defer, disabled,
hidden, loop, multiple, open, readonly, required, scoped, selected _It is still recommended that Just putting that there for reference 🐵 |
Yeah that's right, so the setting is a |
I don't think that's a big deal. Setting the styles through the css file instead of inline-css should make it the same to upgrading users. |
As of jQuery 1.6 element properties should be accessed with jQuery's .prop() method (715a346)
When coming from an earlier jQuery-selectBox version (I came from 1.0.6) setting inline styles overwrites existing css definitions. (4773a31)