File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
projects/packages/forms/src/blocks/contact-form Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -404,10 +404,6 @@ export const childBlocks = [
404
404
type : 'string' ,
405
405
default : __ ( 'Number' , 'jetpack-forms' ) ,
406
406
} ,
407
- defaultValue : {
408
- type : 'number' ,
409
- default : '' ,
410
- } ,
411
407
} ,
412
408
} ,
413
409
} ,
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ const JetpackField = props => {
52
52
onChange = { e => setAttributes ( { placeholder : e . target . value } ) }
53
53
style = { fieldStyle }
54
54
type = { type }
55
- value = ""
56
- placeholder = { placeholder }
55
+ value = { placeholder }
57
56
onClick = { event => type === 'file' && event . preventDefault ( ) }
58
57
onKeyDown = { event => {
59
58
if ( event . defaultPrevented || event . key !== 'Enter' ) {
@@ -71,6 +70,7 @@ const JetpackField = props => {
71
70
setAttributes = { setAttributes }
72
71
placeholder = { placeholder }
73
72
attributes = { attributes }
73
+ hidePlaceholder = { type === 'number' }
74
74
/>
75
75
</ >
76
76
) ;
You can’t perform that action at this time.
0 commit comments