paper-typeahead-input
paper-typeahead-input copied to clipboard
Support prefix/suffix elements
paper-typeahead-input version: 1.3.15 Polymer version: 1.8.1
paper-typeahead-input does not include <content></content>
anywhere, so it is impossible to include prefix/suffix elements. For example:
<paper-typeahead-input>
<paper-icon-button suffix on-tap="clearSearchbox" icon="clear"></paper-icon-button>
</paper-typeahead-input>
Expected: An "X" icon button on the right side of the search box, which calls clearSearchbox(event)
when tapped.
Actual: No button exists
Replacing paper-typeahead-input
in the above snippet with paper-input
behaves as expected, although of course it's no longer a typeahead!
@Lithl is the snippet
<paper-typeahead-input>
<paper-icon-button suffix on-tap="clearSearchbox" icon="clear"></paper-icon-button>
</paper-typeahead-input>
working fine for you?
Can you setup a fiddle that how that's looking in the front end?
See http://jsfiddle.net/hr4h65cf/ comparing paper-typeahead-input with paper-input, each with a single paper-icon-button child.