fix: unable to remove Icon on Input widget (#16007)

This commit is contained in:
Aswath K 2022-08-15 15:14:58 +05:30 committed by GitHub
parent 359d09d53e
commit b88564d96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -25,7 +25,6 @@ import { BaseInputWidgetProps } from "widgets/BaseInputWidget/widget";
import { mergeWidgetConfig } from "utils/helpers";
import { InputTypes } from "widgets/BaseInputWidget/constants";
import { getParsedText } from "./Utilities";
import { IconNames } from "@blueprintjs/icons";
export function defaultValueValidation(
value: any,
@ -310,7 +309,6 @@ class InputWidget extends BaseInputWidget<InputWidgetProps, WidgetState> {
type: ValidationTypes.TEXT,
params: {
allowedValues: ICON_NAMES,
default: IconNames.PLUS,
},
},
},
@ -505,7 +503,6 @@ class InputWidget extends BaseInputWidget<InputWidgetProps, WidgetState> {
type: ValidationTypes.TEXT,
params: {
allowedValues: ICON_NAMES,
default: IconNames.PLUS,
},
},
},

View File

@ -14,7 +14,6 @@ import {
ValidationTypes,
} from "constants/WidgetValidation";
import { ICON_NAMES } from "widgets/constants";
import { IconNames } from "@blueprintjs/icons";
function defaultValueValidation(
value: any,
@ -429,7 +428,6 @@ const PROPERTIES = {
type: ValidationTypes.TEXT,
params: {
allowedValues: ICON_NAMES,
default: IconNames.PLUS,
},
},
hidden: (...args: HiddenFnParams) =>
@ -805,7 +803,6 @@ const PROPERTIES = {
type: ValidationTypes.TEXT,
params: {
allowedValues: ICON_NAMES,
default: IconNames.PLUS,
},
},
hidden: (...args: HiddenFnParams) =>