* Call AfterRender also when using pre-existing element ID

This commit is contained in:
Michaël Van Canneyt 2023-12-30 17:19:16 +01:00
parent 0ea98f71a0
commit dd8c2a15af

View File

@ -2290,12 +2290,16 @@ begin
if (FElementID<>'') then
begin
El:=FindElement(FElementID);
FElement:=El;
if Assigned(El) then
begin
if Assigned(FBeforeRenderHTML) then
FBeforeRenderHTML(Self);
ApplyWidgetSettings(el);
HookupEvents(el);
if Assigned(FAfterRenderHTML) then
FAfterRenderHTML(Self);
end;
FElement:=El;
if Assigned(El) then
ApplyData;
RefreshReferences;// After data, so data can be used in selectors