Fix hashtag display
This updates gr-limited-text to handle cases where there is no limit provided. Previously, the parent element handled this case in a dom-if, however, the dom-if was not evaluated because the value was undefined. Change-Id: Iae598c6afe4be7ca1fe96a2baf02ec13629bd962
This commit is contained in:
@@ -63,14 +63,9 @@ limitations under the License.
|
||||
}
|
||||
</style>
|
||||
<div class$="container [[_getBackgroundClass(transparentBackground)]]">
|
||||
<template is="dom-if" if="[[limit]]">
|
||||
<a href$="[[href]]">
|
||||
<gr-limited-text limit="[[limit]]" text="[[text]]"></gr-limited-text>
|
||||
</a>
|
||||
</template>
|
||||
<template is="dom-if" if="[[!limit]]">
|
||||
<a href$="[[href]]">[[text]]</a>
|
||||
</template>
|
||||
<a href$="[[href]]">
|
||||
<gr-limited-text limit="[[limit]]" text="[[text]]"></gr-limited-text>
|
||||
</a>
|
||||
<gr-button
|
||||
id="remove"
|
||||
hidden$="[[!removable]]"
|
||||
|
||||
Reference in New Issue
Block a user