From 605c04fcf1f346e2fea6734bbe512c201f1f83aa Mon Sep 17 00:00:00 2001 From: "Chris E. Kelley" Date: Wed, 29 Jul 2020 15:59:53 -0500 Subject: [PATCH] switched observer on hintText from render fixed double event firing for onCheckboxClicked --- input/tangy-checkbox.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/input/tangy-checkbox.js b/input/tangy-checkbox.js index 3f49b16e..876f6108 100644 --- a/input/tangy-checkbox.js +++ b/input/tangy-checkbox.js @@ -79,7 +79,7 @@ export class TangyCheckbox extends PolymerElement { type: String, value: '', reflectToAttribute: true, - observer: 'render' + observer: 'onHintTextChanged' }, hasWarning: { type: Boolean, @@ -177,6 +177,10 @@ export class TangyCheckbox extends PolymerElement { } + onHintTextChanged() { + this.$['hint-text'].innerHTML = this.hintText + } + applyLabel(label) { this.$.checkbox.children['checkbox-text'].innerHTML = this.label }