Skip to content
Snippets Groups Projects
Unverified Commit b04b4ed3 authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Refactor: Remove FieldValuesWidget forceTokenField prop (#34903)

parent 0c4a6d86
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,6 @@ export interface IFieldValuesWidgetProps {
className?: string;
prefix?: string;
placeholder?: string;
forceTokenField?: boolean;
checkedColor?: string;
valueRenderer?: (value: string | number) => JSX.Element;
......@@ -135,7 +134,6 @@ export function FieldValuesWidgetInner({
className,
prefix,
placeholder,
forceTokenField = false,
checkedColor,
valueRenderer,
optionRenderer,
......@@ -411,8 +409,7 @@ export function FieldValuesWidgetInner({
const isListMode =
!disableList &&
shouldList({ parameter, fields, disableSearch }) &&
valuesMode === "list" &&
!forceTokenField;
valuesMode === "list";
const isLoading = loadingState === "LOADING";
const hasListValues = hasList({
parameter,
......
......@@ -51,7 +51,7 @@ function CategoryFieldInput({
autoFocus={false}
alwaysShowOptions={false}
disableSearch={false}
forceTokenField
disableList
layoutRenderer={DefaultTokenFieldLayout}
valueRenderer={(val: string) => <span>{val}</span>}
color="brand"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment