mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 18:17:45 +02:00
* Call AfterRender also when using pre-existing element ID
This commit is contained in:
parent
0ea98f71a0
commit
dd8c2a15af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user