Fix mui inputProps

pull/748/head
nimbleghost 2023-05-24 21:08:33 +02:00
parent 951c90763a
commit 9ebeb7f12f
2 changed files with 10 additions and 5 deletions

View File

@ -76,9 +76,11 @@ const EmojiPicker = (props) => {
variant="standard" variant="standard"
fullWidth fullWidth
sx={{ marginTop: 0, marginBottom: "12px", paddingRight: 2 }} sx={{ marginTop: 0, marginBottom: "12px", paddingRight: 2 }}
inputProps={{ InputProps={{
role: "searchbox", inputProps: {
"aria-label": t("emoji_picker_search_placeholder"), role: "searchbox",
"aria-label": t("emoji_picker_search_placeholder"),
},
endAdornment: ( endAdornment: (
<InputAdornment position="end" sx={{ display: search ? "" : "none" }}> <InputAdornment position="end" sx={{ display: search ? "" : "none" }}>
<IconButton size="small" onClick={handleSearchClear} edge="end" aria-label={t("emoji_picker_search_clear")}> <IconButton size="small" onClick={handleSearchClear} edge="end" aria-label={t("emoji_picker_search_clear")}>

View File

@ -824,8 +824,11 @@ const ExpandingTextField = (props) => {
variant="standard" variant="standard"
sx={{ width: `${textWidth}px`, borderBottom: "none" }} sx={{ width: `${textWidth}px`, borderBottom: "none" }}
InputProps={{ InputProps={{
style: { fontSize: theme.typography[props.variant].fontSize, paddingBottom: 0, paddingTop: 0 }, style: { fontSize: theme.typography[props.variant].fontSize },
"aria-label": props.placeholder, inputProps: {
style: { paddingBottom: 0, paddingTop: 0 },
"aria-label": props.placeholder,
},
}} }}
disabled={props.disabled} disabled={props.disabled}
/> />