From 27b25b247849ad4c404ff980ddb36c878720e128 Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Mon, 11 Dec 2023 20:57:25 +0800 Subject: [PATCH] Revert "[Select][material-ui] Add id to hidden input element (#39414)" This reverts commit b81119c3dd26a67fd909d80315e140cf68882d2b. --- packages/mui-material/src/InputLabel/InputLabel.js | 5 ----- packages/mui-material/src/Select/SelectInput.js | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/mui-material/src/InputLabel/InputLabel.js b/packages/mui-material/src/InputLabel/InputLabel.js index ab9831fd3e4af5..f28ce9b43c832e 100644 --- a/packages/mui-material/src/InputLabel/InputLabel.js +++ b/packages/mui-material/src/InputLabel/InputLabel.js @@ -119,11 +119,6 @@ const InputLabelRoot = styled(FormLabel, { transform: 'translate(14px, -9px) scale(0.75)', }), }), - ...(ownerState.variant === 'standard' && { - '&:not(label) + div': { - marginTop: 16, - }, - }), })); const InputLabel = React.forwardRef(function InputLabel(inProps, ref) { diff --git a/packages/mui-material/src/Select/SelectInput.js b/packages/mui-material/src/Select/SelectInput.js index 75cd39dd118c3b..9c36c98f142ef0 100644 --- a/packages/mui-material/src/Select/SelectInput.js +++ b/packages/mui-material/src/Select/SelectInput.js @@ -489,8 +489,6 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) { const listboxId = useId(); - const hiddenInputId = useId(); - return (