Open viridia opened 8 years ago
The className
property of the Autosuggest component is applied (somewhat arbitrarily) to the input
element (as opposed to the top-level div
). Is that what you're expecting? Depending on settings like whether the toggle is visible (which controls whether an input group div
wraps the input
element), you'll have a variable number of div
s wrapping the input
. As in #4, you can force the presence of the input group regardless of the toggle visibility by using a setting such as bsSize
.
Since CSS doesn't have parent selectors, it might be better (and more intuitive) if I moved the className
usage to the (unconditionally rendered) top-level div
. It's a breaking change, but I doubt it would affect anyone at this point. Let me know if you think this will help.
I'm passing a 'className' attribute to the Autosuggest widget so that I can customize the width, but I see odd behavior when I do this. First, here's how I am calling it:
Also, I have set up my search callback to return no results if the input string is <2 characters. Given that, here's what I see: