소스 검색

* 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;