@@ -215,7 +215,8 @@ function Placeholder(props) {
215
215
"company" ,
216
216
"job title" ,
217
217
"date" ,
218
- "email"
218
+ "email" ,
219
+ textWidget
219
220
] . includes ( props . pos . type ) ;
220
221
221
222
if ( widgetTypeExist ) {
@@ -594,7 +595,8 @@ function Placeholder(props) {
594
595
disableDragging = {
595
596
props . isNeedSign
596
597
? true
597
- : props . isPlaceholder && props . pos . type !== "date"
598
+ : props . isPlaceholder &&
599
+ ! [ "date" , textWidget ] . includes ( props . pos . type )
598
600
? false
599
601
: ! isDraggingEnabled
600
602
}
@@ -652,8 +654,18 @@ function Placeholder(props) {
652
654
style = { {
653
655
left : props . xPos ( props . pos , props . isSignYourself ) ,
654
656
top : props . yPos ( props . pos , props . isSignYourself ) ,
655
- width : "auto" , //props.posWidth(props.pos, props.isSignYourself),
657
+ width :
658
+ props . pos . type === radioButtonWidget ||
659
+ props . pos . type === "checkbox"
660
+ ? "auto"
661
+ : props . posWidth ( props . pos , props . isSignYourself ) ,
662
+ // "auto", //props.posWidth(props.pos, props.isSignYourself),
656
663
// height: props.posHeight(props.pos, props.isSignYourself),
664
+ height :
665
+ props . pos . type === radioButtonWidget ||
666
+ props . pos . type === "checkbox"
667
+ ? "auto"
668
+ : props . posHeight ( props . pos , props . isSignYourself ) ,
657
669
zIndex : "10"
658
670
} }
659
671
onTouchEnd = { ( ) => handleOnClickPlaceholder ( ) }
0 commit comments