fix: unable to remove Icon on Input widget (#16007)
This commit is contained in:
parent
359d09d53e
commit
b88564d96a
|
|
@ -25,7 +25,6 @@ import { BaseInputWidgetProps } from "widgets/BaseInputWidget/widget";
|
||||||
import { mergeWidgetConfig } from "utils/helpers";
|
import { mergeWidgetConfig } from "utils/helpers";
|
||||||
import { InputTypes } from "widgets/BaseInputWidget/constants";
|
import { InputTypes } from "widgets/BaseInputWidget/constants";
|
||||||
import { getParsedText } from "./Utilities";
|
import { getParsedText } from "./Utilities";
|
||||||
import { IconNames } from "@blueprintjs/icons";
|
|
||||||
|
|
||||||
export function defaultValueValidation(
|
export function defaultValueValidation(
|
||||||
value: any,
|
value: any,
|
||||||
|
|
@ -310,7 +309,6 @@ class InputWidget extends BaseInputWidget<InputWidgetProps, WidgetState> {
|
||||||
type: ValidationTypes.TEXT,
|
type: ValidationTypes.TEXT,
|
||||||
params: {
|
params: {
|
||||||
allowedValues: ICON_NAMES,
|
allowedValues: ICON_NAMES,
|
||||||
default: IconNames.PLUS,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -505,7 +503,6 @@ class InputWidget extends BaseInputWidget<InputWidgetProps, WidgetState> {
|
||||||
type: ValidationTypes.TEXT,
|
type: ValidationTypes.TEXT,
|
||||||
params: {
|
params: {
|
||||||
allowedValues: ICON_NAMES,
|
allowedValues: ICON_NAMES,
|
||||||
default: IconNames.PLUS,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ import {
|
||||||
ValidationTypes,
|
ValidationTypes,
|
||||||
} from "constants/WidgetValidation";
|
} from "constants/WidgetValidation";
|
||||||
import { ICON_NAMES } from "widgets/constants";
|
import { ICON_NAMES } from "widgets/constants";
|
||||||
import { IconNames } from "@blueprintjs/icons";
|
|
||||||
|
|
||||||
function defaultValueValidation(
|
function defaultValueValidation(
|
||||||
value: any,
|
value: any,
|
||||||
|
|
@ -429,7 +428,6 @@ const PROPERTIES = {
|
||||||
type: ValidationTypes.TEXT,
|
type: ValidationTypes.TEXT,
|
||||||
params: {
|
params: {
|
||||||
allowedValues: ICON_NAMES,
|
allowedValues: ICON_NAMES,
|
||||||
default: IconNames.PLUS,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hidden: (...args: HiddenFnParams) =>
|
hidden: (...args: HiddenFnParams) =>
|
||||||
|
|
@ -805,7 +803,6 @@ const PROPERTIES = {
|
||||||
type: ValidationTypes.TEXT,
|
type: ValidationTypes.TEXT,
|
||||||
params: {
|
params: {
|
||||||
allowedValues: ICON_NAMES,
|
allowedValues: ICON_NAMES,
|
||||||
default: IconNames.PLUS,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hidden: (...args: HiddenFnParams) =>
|
hidden: (...args: HiddenFnParams) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user