File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1132,8 +1132,6 @@ const TemplatePlaceholder = () => {
1132
1132
inputype = options . includes ( defaultdata . textvalidate )
1133
1133
? defaultdata . textvalidate
1134
1134
: "regex" ;
1135
- } else {
1136
- inputype = "text" ;
1137
1135
}
1138
1136
1139
1137
const filterSignerPos = signerPos . filter ( ( data ) => data . Id === uniqueId ) ;
@@ -1158,11 +1156,14 @@ const TemplatePlaceholder = () => {
1158
1156
status : defaultdata ?. status || "required" ,
1159
1157
hint : defaultdata ?. hint || "" ,
1160
1158
defaultValue : defaultdata ?. defaultValue || "" ,
1161
- validation : {
1162
- type : inputype ,
1163
- pattern :
1164
- inputype === "regex" ? defaultdata . textvalidate : ""
1165
- }
1159
+ validation :
1160
+ ( isSubscribe || ! isEnableSubscription ) && inputype
1161
+ ? {
1162
+ type : inputype ,
1163
+ pattern :
1164
+ inputype === "regex" ? defaultdata . textvalidate : ""
1165
+ }
1166
+ : { }
1166
1167
}
1167
1168
} ;
1168
1169
} else {
@@ -1206,6 +1207,7 @@ const TemplatePlaceholder = () => {
1206
1207
setIsCheckbox ( false ) ;
1207
1208
} ;
1208
1209
1210
+ console . log ( "signerpos" , signerPos ) ;
1209
1211
return (
1210
1212
< div >
1211
1213
< Title title = { "Template" } />
You can’t perform that action at this time.
0 commit comments