fix: changed cap default to fix ux issue on js toggle (#10424)

* fix: changed cap default to fix ux issue on js toggle

* fix: hard check on capSide hide

* fix: always show capSide if dynamic capType

* docs: label, help text update

* fix: remove hidden condition
This commit is contained in:
Bhavin K 2022-01-25 19:24:36 +05:30 committed by GitHub
parent cd02572374
commit b52ec44966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,15 +149,15 @@ class DividerWidget extends BaseWidget<DividerWidgetProps, WidgetState> {
params: {
allowedValues: ["nc", "arrow", "dot"],
required: true,
default: "arrow",
default: "nc",
},
},
},
{
helpText:
"Controls hide/show divider cap on start or end of divider",
"Changes the position of the cap if a valid cap is selected.",
propertyName: "capSide",
label: "",
label: "Cap Position",
controlType: "ICON_TABS",
options: [
{
@ -177,8 +177,6 @@ class DividerWidget extends BaseWidget<DividerWidgetProps, WidgetState> {
defaultValue: "0",
isBindProperty: false,
isTriggerProperty: false,
hidden: (props: DividerWidgetProps) => props.capType === "nc",
dependencies: ["capType"],
},
],
},