PolymerElements / gold-phone-input

An input element that only allows phone numbers
https://webcomponents.org/element/PolymerElements/gold-phone-input
13 stars 30 forks source link

Can't nest a paper-icon button inside a gold-phone-input #70

Open Sambender9 opened 8 years ago

Sambender9 commented 8 years ago

I want to be able to nest a paper-icon-button inside a gold-phone-input as to be able to clear out the input. I have an 'X' btn that calls a function that clears out the input when clicked.

Actual outcome The paper-icon-button does not show.

Expected outcome The paper-icon-button would show just as it does when nesting it inside a paper-input

Steps to reproduce

  1. Create a gold-phone-input
  2. Nest a paper-icon-button
  3. Open a browser

Browsers Affected

notwaldorf commented 8 years ago

I think the solution here would be to port the prefix/suffix code from paper-input, and add them here as well. Then you could distribute a paper-icon-button in one of those slots.

Would you be interested in sending a PR for that