From 60eb43cd471c97a6cdcae1e5ec2d4a99c7f49b30 Mon Sep 17 00:00:00 2001 From: Matt Mo Date: Sun, 10 Jan 2021 11:13:00 -0800 Subject: [PATCH] editable-label now uses inner text for value instead of inner html to fix a bug in IOS where a
tag is inserted into the element for some reason. --- editable-label.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editable-label.js b/editable-label.js index d421cd7..3c1ce4b 100644 --- a/editable-label.js +++ b/editable-label.js @@ -117,8 +117,8 @@ class EditableLabel extends IgniteElement { this.editing = false; } - if (this.input.innerHTML !== this.value) { - this.value = this.input.innerHTML; + if (this.input.innerText !== this.value) { + this.value = this.input.innerText; //Dispatch a native change event this.dispatchEvent(new CustomEvent("change", { bubbles: true }));