Skip to content
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

Support prefix/suffix elements #46

Open
Lithl opened this issue Apr 25, 2017 · 2 comments
Open

Support prefix/suffix elements #46

Lithl opened this issue Apr 25, 2017 · 2 comments

Comments

@Lithl
Copy link

Lithl commented Apr 25, 2017

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!

@cheonhyangzhang
Copy link
Owner

cheonhyangzhang commented Jul 27, 2017

@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?

@Lithl
Copy link
Author

Lithl commented Jul 28, 2017

See http://jsfiddle.net/hr4h65cf/ comparing paper-typeahead-input with paper-input, each with a single paper-icon-button child.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants