[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
#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: