[pickers] Datepicker flickers with custom textfield component #9525
Labels
component: pickers
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
support: commercial
Support request from paid users
Order ID or Support key 💳 (optional)
52198
Duplicates
Latest version
The problem in depth 🔍
Observed two issues with
datepicker + custom Text field component
#1. If with custom text field components, input props are not provided (see TODO comment in code sandbox attached), placement for datepicker popup does not align with anchored input element
![Screenshot 2023-06-30 at 8 48 39 AM](https://private-user-images.githubusercontent.com/102800997/250016081-2e7ca6bc-4bef-4cd3-9f23-12a72be271a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzM1NTMsIm5iZiI6MTczOTEzMzI1MywicGF0aCI6Ii8xMDI4MDA5OTcvMjUwMDE2MDgxLTJlN2NhNmJjLTRiZWYtNGNkMy05ZjIzLTEyYTcyYmUyNzFhNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQyMDM0MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNjU5OTk2MmM1ZDA0YzBlZGRmYWIxNWJlMGMxMTNmNmYwYWE5MGFlMDZkM2E4ZGRmYmE2Y2Q1MDM3OGRlMWRlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KJWrV1bDfF30L_rmdJjBrvewYPi_ho4BZW9-b9D8O9o)
#2. If I try to fix above popper placement issue with input props, datepicker rerenders/flickers
Screencast 2023-06-30 08-51-48.webm
here is attached code sandbox reproducible:
https://codesandbox.io/s/mui-datepicker-with-custom-textfield-issues-t8tr9w?file=/src/Datepicker.tsx
Your environment 🌎
`npx @mui/envinfo`
node v18.4.0
browser: Chrome latest
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.13.3",
"@mui/styled-engine-sc": "^5.12.0",
"@mui/x-date-pickers-pro": "^6.5.0",
The text was updated successfully, but these errors were encountered: