Skip to content
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: if placeholder is set to 0 then it doesn't render as expected #41725

Open
enejb opened this issue Feb 11, 2025 · 3 comments
Open

Forms: if placeholder is set to 0 then it doesn't render as expected #41725

enejb opened this issue Feb 11, 2025 · 3 comments
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

Comments

@enejb
Copy link
Member

enejb commented Feb 11, 2025

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

Image

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

@enejb enejb added [Package] Forms [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged labels Feb 11, 2025
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Feature Group] Content Management Features related to the tools and screens that admins use to manage their sites core content. [Feature] Contact Form [Feature] Forms Blocks Blocks designed to streamline user input and engagement, such as contact, newsletter sign-ups, etc. labels Feb 11, 2025
Copy link
Contributor

OpenAI suggested the following labels for this issue:

  • [Feature Group] Content Management: The issue relates to how content is structured and managed within forms on the site.
  • [Feature] Contact Form: The issue concerns the rendering of placeholder values in text fields, which are commonly used in contact forms.
  • [Feature] Forms Blocks: Since the issue specifically involves the behavior of a form block when a placeholder value of '0' is set, this label is directly relevant.

Copy link
Contributor

This issue could use some more labels, to help prioritize and categorize our work. Could you please add at least a [Type], a [Feature], and a [Pri] label?

@janmckell
Copy link

📌 Message to Author
Hey @enejb Can I assume this can be assigned to the Jetpack team, and that you've already triaged it ?

@janmckell janmckell moved this from Needs Triage to In Triage in Automattic Prioritization: The One Board ™ Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Development

No branches or pull requests

3 participants