Quellcode durchsuchen

* Set placeholder before refresh should also set it

Michaël Van Canneyt vor 11 Monaten
Ursprung
Commit
28d68c938b
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      packages/webwidget/src/htmlwidgets.pp

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

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