-
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
Where does the attributes class and id should go? #16
Comments
the "autocomplete" class on that div is specific enough to customise elements within, a way to add class on the input field would be much handier. |
Okay, maybe'it would be good if the class would be on both? On the |
That wouldn't make sense to me... couldn't you just target the input if the outer div had a class?
|
@JustGoscha sounds fine. @chesleybrown you can do that, the issue here is bootstrap has classes which we would like to apply to the input field |
@chesleybrown Yes, but it's not optimal. This is DRY-er and stays synchronised with the styles in bootstrap:
Against this:
Which it's a bit harder to maintain and doesn't . How about this?
|
@davidmh, @chesleybrown, @JustGoscha The wrapping div already has 'autocomplete' on there as a class. Do you have an example where using attr-class on that wrapping div to add a second class is advantageous? |
Nop, it's just to make it backwards compatible. Maybe someone already deployed something using this directive. Those attributes could be marked as deprecated to warn about future deletion or simply removed. They are not really relevant anymore. Edit: |
@davidmh Ok, let's do it, just make sure it's still optional an works without 😉 |
I'm dependant on a fix so ill go ahead and do it |
See: #20 Once verified could you plus update the bower version so I cna start using it? |
Currently, they are rendered in the .autocomplete div, but I was thinking that maybe they could be more useful in the input within the .autocomplete.
Case in point:
renders:
Working with bootstrap or another css framework requires adding the class to the input itself. Currently there's no way of doing that.
TL;DR: move the class and id attributes to the input inside .autocomplete
The text was updated successfully, but these errors were encountered: