Let's say I have this in the html
<button type="button" id="testbutton">Test</button>
and in code
MyButton:=TButtonWidget.Create(self);
MyButton.ElementID:='testbutton';
MyButton.Refresh;
This will remove the text from the button, unless I add
MyButton.Text:='Test'.Is there a way to keep the original text defined in the html?
This doesn't happen, e.g., with a TDivWidget or a TCheckboxInputWidget (they both keep the original content).
I'm using this version of pas2js
commit abaa86d44662735e31f1a93663f54152cfe334c0 (HEAD -> main, origin/main, origin/HEAD)
Author: Micha?l Van Canneyt
Date: Wed Oct 5 11:04:23 2022 +0200
* ApplyText introduced, properly get/set empty text
Bye
