From b88564d96a5182ed4767c9bfa8d2d12628bc520b Mon Sep 17 00:00:00 2001 From: Aswath K Date: Mon, 15 Aug 2022 15:14:58 +0530 Subject: [PATCH] fix: unable to remove Icon on Input widget (#16007) --- app/client/src/widgets/InputWidgetV2/widget/index.tsx | 3 --- .../JSONFormWidget/widget/propertyConfig/properties/input.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/app/client/src/widgets/InputWidgetV2/widget/index.tsx b/app/client/src/widgets/InputWidgetV2/widget/index.tsx index d60c2a7235..ff78af4942 100644 --- a/app/client/src/widgets/InputWidgetV2/widget/index.tsx +++ b/app/client/src/widgets/InputWidgetV2/widget/index.tsx @@ -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 { type: ValidationTypes.TEXT, params: { allowedValues: ICON_NAMES, - default: IconNames.PLUS, }, }, }, @@ -505,7 +503,6 @@ class InputWidget extends BaseInputWidget { type: ValidationTypes.TEXT, params: { allowedValues: ICON_NAMES, - default: IconNames.PLUS, }, }, }, diff --git a/app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/input.ts b/app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/input.ts index 229f32e55b..e9adb3448e 100644 --- a/app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/input.ts +++ b/app/client/src/widgets/JSONFormWidget/widget/propertyConfig/properties/input.ts @@ -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) =>