-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Ditch typeahead.css and set css properties through js #2
Comments
I had to postpone usage of typeahead in my current project, because the typeahead styles messed too much with existing styles. For example, our searchfields will often have a non transparent background and some even an icon as background-image. Typeahead would reset the searchfield to have a transparent background and the transparent gif as background-image. This kind of destroys our layouts. It'd be great if typeahead could work around IE bugs/behavior in a less destructive way, so it ultimately won't alter the appearance of input-fields attached to typeahead at all. |
Try the |
Will do, thanks. First glimpse at the branch, it seem the transparent gif background etc. is gone, so this looks promising already. Thought the two commits attached to this ticket were from the 0.9 branch already and these still contained the gif... My bad. |
The transparent gif is still used for IE, but the background styles from the original input now get explicitly copied over to the hint input. I believe this will solve your problem. |
OK, so the input will be transparent and we'll see through the hint input which is a clone of the original input. That sounds good. I'll test this but it'll take a while as we're busy preparing/testing a release of our desktop-app (without typeahead for now, but to be included in the next release). |
…bind Use underscore bind instead of native.
Loading only typeahead.js > loading both typeahead.js and typeahead.css
The text was updated successfully, but these errors were encountered: