Forms: if placeholder is set to 0 then it doesn't render as expected #41725
Labels
[Experiment] AI labels added
[Feature] Contact Form
[Feature] Forms Blocks
Blocks designed to streamline user input and engagement, such as contact, newsletter sign-ups, etc.
[Feature Group] Content Management
Features related to the tools and screens that admins use to manage their sites core content.
Needs triage
Ticket needs to be triaged
[Package] Forms
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] Normal
[Status] Auto-allocated
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
If you add the placeholder as 0 to a text field it doesn't render as expected. Since when we are checking and applying classes we assume that the value is "empty".
Steps to reproduce
On a page add the form block. Add the placeholder of "0".
Notice that the form has the animated style. The placeholder is displayed under the label.
See
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Minor
What other impact(s) does this issue have?
Individual site owner revenue
If a workaround is available, please outline it here.
Instead of using 0. the user can type 0.00
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
The text was updated successfully, but these errors were encountered: