You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2021/12/10 08:49:00 UTC

[royale-asjs] branch develop updated: Should have been textContent

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 51f87d8  Should have been textContent
51f87d8 is described below

commit 51f87d84eaeac15e5eeea2cbe93a403d5e2aa23f
Author: Harbs <ha...@in-tools.com>
AuthorDate: Fri Dec 10 10:48:46 2021 +0200

    Should have been textContent
---
 frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
index 773969f..5fdd7c8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as
@@ -702,7 +702,7 @@ public class Button extends UIComponent implements IDataRenderer, IListItemRende
 	{
 		var label:String = ITextModel(model).text;
 		if (label != null) {
-			element.innerHTML = label;
+			element.textContent = label;
 		}
 		var icon:String = ImageAndTextModel(model).image;
 		if (icon != null) {