浏览代码

* Set placeholder before refresh should also set it

Michaël Van Canneyt 10 月之前
父节点
当前提交
28d68c938b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;