trigger state autofill
This commit is contained in:
1 parent
736a6053ef
commit
326775848b
8 files changed
+440
-268
No files matched your search
@@ -5,6 +5,7 @@ import Chip from "@mui/material/Chip";
|
||||
import { Badge } from "@mui/material";
|
||||
import { SearchItem } from "./extras";
|
||||
import { ReactNode } from "react";
|
||||
import { prettyName } from "utils/formatting";
|
||||
|
||||
export type BaseOption<T = {}> = {
|
||||
id: string;
|
||||
@@ -204,7 +205,11 @@ export function InputAutoComplete<T extends Option>(
|
||||
size="medium"
|
||||
label={
|
||||
<>
|
||||
{id === label ? <span>{label}</span> : <b>{label}</b>}
|
||||
{id === label ? (
|
||||
<span>{prettyName(label)}</span>
|
||||
) : (
|
||||
<b>{label}</b>
|
||||
)}
|
||||
{id !== label && !props.onlyShowLabel && (
|
||||
<small>{id}</small>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user