在<paper-icon-button>
内嵌<paper-input>
时似乎没有问题,但当我尝试将<paper-icon-button>
嵌套在<gold-phone-input>
内时,它将无法显示。这是一个错误吗?我基本上想要显示一个'X'按钮,当存在一个值时它将清除输入。我有一个clearPhoneNumber
函数,只检查value > 0
是否会更改visibility to "visible";
<gold-phone-input id="phoneNum" country-code="1" label="Phone Number" maxlength="12" value="{{phoneNum}}">
<paper-icon-button id="btnPhoneNum" suffix on-click="clearPhoneNum" icon="clear" alt="clear" title="clear" style="visibility: hidden;"></paper-icon-button>
</gold-phone-input>