Răsfoiți Sursa

* Set placeholder before refresh should also set it

Michaël Van Canneyt 10 luni în urmă
părinte
comite
28d68c938b
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      packages/webwidget/src/htmlwidgets.pp

+ 2 - 0
packages/webwidget/src/htmlwidgets.pp

@@ -2894,6 +2894,8 @@ begin
     inp.maxLength:=FMaxLength;
     inp.maxLength:=FMaxLength;
   if FMinLength<>0 then
   if FMinLength<>0 then
     inp.minLength:=FMinLength;
     inp.minLength:=FMinLength;
+  if FPlaceHolder<>'' then
+    inp.Placeholder:=Placeholder;
 end;
 end;
 
 
 class function TTextInputWidget.AllowChildren: Boolean;
 class function TTextInputWidget.AllowChildren: Boolean;