hide timezone border (#546)

This commit is contained in:
lenhanphung
2026-02-13 17:03:56 +07:00
committed by GitHub
parent 53f763d6eb
commit ccb5d2d1bc
2 changed files with 19 additions and 0 deletions
+2
View File
@@ -577,6 +577,8 @@ export default function EventFormFields({
width={220}
size="small"
placeholder={t("event.form.timezonePlaceholder")}
hideBorder
inputPadding="8px 65px 8px 0px"
/>
</Box>
</FieldWithLabel>
@@ -22,6 +22,7 @@ interface TimezoneAutocompleteProps {
inputPadding?: string;
onClose?: () => void;
disableClearable?: boolean;
hideBorder?: boolean;
}
export function TimezoneAutocomplete({
@@ -38,6 +39,7 @@ export function TimezoneAutocomplete({
inputPadding,
onClose,
disableClearable = false,
hideBorder = false,
}: TimezoneAutocompleteProps) {
const options = useMemo<TimezoneOption[]>(() => {
return zones.map((tz) => ({
@@ -70,6 +72,21 @@ export function TimezoneAutocomplete({
placeholder={placeholder}
variant="outlined"
autoComplete="off"
sx={
hideBorder
? {
"& .MuiOutlinedInput-notchedOutline": {
border: "none",
},
"&:hover .MuiOutlinedInput-notchedOutline": {
border: "none",
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
border: "none",
},
}
: undefined
}
slotProps={{
input: {
...params.InputProps,