-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forms: add number input #40962
base: trunk
Are you sure you want to change the base?
Forms: add number input #40962
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
7b5380d
to
975a521
Compare
e7be37d
to
2eac76d
Compare
Code Coverage SummaryCoverage changed in 5 files.
|
@@ -52,7 +52,8 @@ const JetpackField = props => { | |||
onChange={ e => setAttributes( { placeholder: e.target.value } ) } | |||
style={ fieldStyle } | |||
type={ type } | |||
value={ placeholder } | |||
value="" | |||
placeholder={ placeholder } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c1d6293
to
93c3317
Compare
Issue #40961
Proposed changes:
Allows setting placeholders as text — PR for general improvement for all fields in #41712:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
Number needs to appear in several places after submitting:
Confirmation message
![Screenshot 2025-02-11 at 14 15 41](https://private-user-images.githubusercontent.com/87168/411967424-ba5fbe1d-4cb0-4826-91fb-85410d811fd1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODMyNzcsIm5iZiI6MTczOTI4Mjk3NywicGF0aCI6Ii84NzE2OC80MTE5Njc0MjQtYmE1ZmJlMWQtNGNiMC00ODI2LTkxZmItODU0MTBkODExZmQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MDkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkM2E4OGYwODlmYWRmYmNmYWFhYmYyNTZmMjA5OWJhZTM1MmJmNjJiYmUwZWU0OTEwOTQ1OTExNWI0NTYzNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FHJIB0pPZaRWZI-AHgaP99zP2Ri_8bsadUybVGjfuzs)
Email
![Screenshot 2025-02-11 at 13 55 36](https://private-user-images.githubusercontent.com/87168/411967388-82e80a06-8d98-4008-957d-cd1be7832908.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODMyNzcsIm5iZiI6MTczOTI4Mjk3NywicGF0aCI6Ii84NzE2OC80MTE5NjczODgtODJlODBhMDYtOGQ5OC00MDA4LTk1N2QtY2QxYmU3ODMyOTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MDkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjMTI3M2Y4NjhmYmI4OGU5OGFlMjBkNzUyMzQ5YzgyZDZlNTFmY2NhMTk2Yjk3NDI4YzViMDhkYWU0Y2VlMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.c_Bv7kfb11KBvPBXqkxqhAGroPmjAx4dSFVO-OVtVYE)
Inbox
![Screenshot 2025-02-11 at 13 54 42](https://private-user-images.githubusercontent.com/87168/411967560-8bb779c1-6240-4d90-ab5a-3421ca0db7fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODMyNzcsIm5iZiI6MTczOTI4Mjk3NywicGF0aCI6Ii84NzE2OC80MTE5Njc1NjAtOGJiNzc5YzEtNjI0MC00ZDkwLWFiNWEtMzQyMWNhMGRiN2ZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MDkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyMzFiNjM0NGRkNzkwMWY3MThmMTIxODBkMzIyNzc2NDZkODhhYWNkMDcyYzVmZGVlOWZjMzcxZDI2NDJmZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QD90oavs2xyFmTlwSb_6HYeLnBO4haPZcE7aN7fjgRk)
Export
![Screenshot 2025-02-11 at 14 04 39](https://private-user-images.githubusercontent.com/87168/411967471-80ac7069-e340-4608-b64f-69424d107be1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODMyNzcsIm5iZiI6MTczOTI4Mjk3NywicGF0aCI6Ii84NzE2OC80MTE5Njc0NzEtODBhYzcwNjktZTM0MC00NjA4LWI2NGYtNjk0MjRkMTA3YmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MDkzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhNjdiYTE3NGVjYmE4OWUxYzNjZjJkOWVlY2RjMTUxZTRkNjI1YmQzMjM4NjFkZWZjYjkxY2U3NDNkMWJiNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._aYATkhgBYH4GobmY3FAXYpDEbssvNXgkRcqwbCDErs)