mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-09 20:17:51 +02:00
* Reinstate check for non-empty text content
This commit is contained in:
parent
270fdb1e02
commit
426000efcd
@ -3195,10 +3195,11 @@ end;
|
||||
procedure TCustomTagWidget.ApplyWidgetSettings(aElement: TJSHTMLElement);
|
||||
begin
|
||||
inherited ApplyWidgetSettings(aElement);
|
||||
if TextMode=tmText then
|
||||
aElement.InnerText:=TextContent
|
||||
else
|
||||
aElement.InnerHTML:=TextContent
|
||||
if FTextContent<>'' then
|
||||
if TextMode=tmText then
|
||||
aElement.InnerText:=TextContent
|
||||
else
|
||||
aElement.InnerHTML:=TextContent
|
||||
end;
|
||||
|
||||
function TCustomTagWidget.HTMLTag: String;
|
||||
|
Loading…
Reference in New Issue
Block a user