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
how can I remove the 'cancel' button? #469
Comments
You could pass something like an invisible icon into <paper-icon-button class="hidden" slot="clear-button"></paper-icon-button> .hidden {
display: none;
} |
The solution for v3: https://jsfiddle.net/6r5htd05/33/ |
I don’t actually understand the original issue. There is no “cancel” button, only a “clear” button. Do we say “cancel button” somewhere in our docs? |
Pressing ESC reverts to the currently selected value. |
@jouni the possible use case is the required field which, once selected, should never be cleared and could be just changed. E. g. some kind of entity version selector (if that entity, article etc, has no saved versions yet, it should not be displayed at all). |
Sure, I understand that use case. But the original issue description doesn’t mention that, so I was wondering where @davidmaxwaterman found that piece of documentation. |
I don't want the user to be able to cancel since it doesn't do what the docs say - they say it should revert to the original value, but it simply clears the field, which I don't want.
The text was updated successfully, but these errors were encountered: