| Index: third_party/polymer/components/paper-input/paper-input-char-counter.html
|
| diff --git a/third_party/polymer/components/paper-input/paper-input-char-counter.html b/third_party/polymer/components/paper-input/paper-input-char-counter.html
|
| index aa3ee51f418ac4705ccf51b07ca97039e5be63f6..1a09a06d0ee062c23cf3876c9a7cca91c4abaed0 100644
|
| --- a/third_party/polymer/components/paper-input/paper-input-char-counter.html
|
| +++ b/third_party/polymer/components/paper-input/paper-input-char-counter.html
|
| @@ -41,6 +41,10 @@ Custom property | Description | Default
|
| @apply(--paper-input-char-counter);
|
| }
|
|
|
| + :host([hidden]) {
|
| + display: none !important;
|
| + }
|
| +
|
| :host-context([dir="rtl"]) {
|
| float: left;
|
| }
|
| @@ -83,7 +87,7 @@ Custom property | Description | Default
|
|
|
| state.value = state.value || '';
|
|
|
| - var counter = state.value.length.toString();
|
| + var counter = state.value.toString().length.toString();
|
|
|
| if (state.inputElement.hasAttribute('maxlength')) {
|
| counter += '/' + state.inputElement.getAttribute('maxlength');
|
|
|