diff --git a/src/components/inspector.tsx b/src/components/inspector.tsx index 18811b4..bc8b810 100644 --- a/src/components/inspector.tsx +++ b/src/components/inspector.tsx @@ -600,18 +600,23 @@ const NodeInspector: FC = () => { )} {type === "enum" && ( + filterOption={(value, option) => { + value = value.toUpperCase(); + return !!option?.label + .toLocaleUpperCase() + .includes(value.toUpperCase()); + }} + /> )} { {type === "boolean" && } {type === "code" && } {type === "enum" && ( - { + return { + value: option.value, + label: `${option.name}(${option.value})`, + }; })} - + filterOption={(value, option) => { + value = value.toUpperCase(); + return !!option?.label + .toLocaleUpperCase() + .includes(value.toUpperCase()); + }} + /> )} );