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

Bug: The placeholder is shown on top of the input value. #26327

Closed
lazybean opened this issue Mar 6, 2023 · 8 comments
Closed

Bug: The placeholder is shown on top of the input value. #26327

lazybean opened this issue Mar 6, 2023 · 8 comments
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@lazybean
Copy link

lazybean commented Mar 6, 2023

React version: 18.2.0 18.3.xxx

Steps To Reproduce

  1. On chrome canary, go to https://codesandbox.io/s/chrome-canary-placeholder-bug-ez4je3?file=/src/App.js
  2. The placeholder is shown on top of the input value. 😱

image

  1. If you focus the input, the placeholder disappears. 👍

Link to code example:
https://codesandbox.io/s/chrome-canary-placeholder-bug-ez4je3?file=/src/App.js

The current behavior

The placeholder is shown on top of the input value.

The expected behavior

The placeholder is not shown.

@lazybean lazybean added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Mar 6, 2023
@lazybean
Copy link
Author

lazybean commented Mar 6, 2023

I'm not sure this is a react bug or a chrome canary bug.
But because I cannot repro with simple html I decided to open issue here first.

@Krishkumarchhabra25
Copy link

import "./styles.css";
import React, { useState } from "react";
export default function App() {
const [value, setValue] = useState("");
return (


Hello CodeSandbox


Start editing to see some magic happen!

  <input
    onChange={(e) => setValue(e.target.value)}
    type="text"
    placeholder="Enter your name"
    value={value}
  />
</div>

);
}

@sunsations
Copy link

@mrb1nary
Copy link

image

I guess it's a canary bug
(Left: Edge | Right: Canary)

@gkienhuis
Copy link

See https://chromium-review.googlesource.com/c/chromium/src/+/4329778

@stefcameron
Copy link

I'm not sure this is a react bug or a chrome canary bug.
But because I cannot repro with simple html I decided to open issue here first.

Not a React bug. Plain HTML has the same issue. Seems to be Canary-specific.

<input placeholder="This is the placeholder" value="foobar" />

I see this in Canary Version 113.0.5629.0 (Official Build) canary (arm64), but I don't see it on Chrome Version 110.0.5481.177 (Official Build) (arm64) and FireFox 110.0 (64-bit). All these checks were done on on macOS 13.2.1 (22D68).

Copy link

github-actions bot commented Apr 9, 2024

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Apr 9, 2024
Copy link

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

6 participants