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

[Popper] Placeholder text from TextField is appearing inside Popper. #33730

Open
2 tasks done
2brownc opened this issue Jul 31, 2022 · 5 comments
Open
2 tasks done

[Popper] Placeholder text from TextField is appearing inside Popper. #33730

2brownc opened this issue Jul 31, 2022 · 5 comments
Labels
component: Popper The React component. See <Popup> for the latest version.

Comments

@2brownc
Copy link

2brownc commented Jul 31, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

When a Popper component is displayed above an TextField component, the place holder text of TextField is appearing inside the Popper.

Expected behavior 🤔

No content of the TextField component should appear on the Popper when Popper displays above TextField.

Steps to reproduce 🕹

Live Example: https://codesandbox.io/s/determined-black-85vufb?file=/demo.js

Steps:

  1. Make sure the Popper displays above a TextField
  2. Click on "Toggle Popper" button to display Popper.
  3. See that placeholder text of TextField being displayed inside the Popper.

Context 🔦

I am trying to display a Popper to help the user when filling a form thus the issues with Popper and TextField.

Your environment 🌎

npx @mui/envinfo
  System:
    OS: Linux 5.18 undefined
  Binaries:
    Node: 18.7.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.15.1 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 103.0
  npmPackages:
    @emotion/react: ^11.9.3 => 11.9.3 
    @emotion/styled: ^11.9.3 => 11.9.3 
    @mui/base:  5.0.0-alpha.91 
    @mui/icons-material: ^5.8.4 => 5.8.4 
    @mui/material: ^5.9.2 => 5.9.2 
    @mui/private-theming:  5.9.1 
    @mui/styled-engine:  5.8.7 
    @mui/system:  5.9.2 
    @mui/types:  7.1.5 
    @mui/utils:  5.9.1 
    @types/react:  18.0.15 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    typescript:  4.7.4 

I used Firefox. The issue is same with chromium based browsers.

@2brownc 2brownc added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 31, 2022
@2brownc
Copy link
Author

2brownc commented Jul 31, 2022

@PunitSoniME
Copy link
Contributor

Fix added

@hbjORbj hbjORbj changed the title Placeholder text from TextField is appearing inside Popper. [Popper] Placeholder text from TextField is appearing inside Popper. Aug 1, 2022
@hbjORbj
Copy link
Member

hbjORbj commented Aug 1, 2022

Why don't you add sx={{ zIndex: 1 }} to the Popper component?

Here's a working example: https://codesandbox.io/s/loving-forest-vgsefx

I don't think that we need to add style to the implementation for this specific use case.

@hbjORbj hbjORbj added component: Paper This is the name of the generic UI component, not the React module! support: Stack Overflow Please ask the community on Stack Overflow and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 1, 2022
@github-actions
Copy link

github-actions bot commented Aug 1, 2022

👋 Thanks for using MUI Core!

We use GitHub issues exclusively as a bug and feature requests tracker, however,
this issue appears to be a support request.

For support, please check out https://mui.com/getting-started/support/. Thanks!

If you have a question on Stack Overflow, you are welcome to link to it here, it might help others.
If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 4, 2022

@oliviertassinari oliviertassinari added component: Popper The React component. See <Popup> for the latest version. and removed component: Paper This is the name of the generic UI component, not the React module! labels Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popper The React component. See <Popup> for the latest version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants