diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_dataIdentifierProperty_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_dataIdentifierProperty_spec.js index baa74e1c0a..00e63fe6ef 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_dataIdentifierProperty_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_dataIdentifierProperty_spec.js @@ -71,7 +71,7 @@ describe("List v2 - Data Identifier property", () => { cy.wait(250); // check if all the keys are present - cy.get(".rc-select-item-option-content > span") + cy.get(".rc-select-item-option-content > div > span") .should("have.length", 3) .then(($el) => { // we get a list of jQuery elements diff --git a/app/client/src/components/propertyControls/DropDownControl.tsx b/app/client/src/components/propertyControls/DropDownControl.tsx index e64117eedd..701bf82040 100644 --- a/app/client/src/components/propertyControls/DropDownControl.tsx +++ b/app/client/src/components/propertyControls/DropDownControl.tsx @@ -117,34 +117,36 @@ class DropDownControl extends BaseControl { label={option.label} value={option.value} > - {/* Show Flag if present */} - {option.leftElement && ( - {option.leftElement} - )} +
+ {/* Show Flag if present */} + {option.leftElement && ( + {option.leftElement} + )} - {/* Show icon if present */} - {option.icon && ( - - )} + {/* Show icon if present */} + {option.icon && ( + + )} - {option.subText ? ( - this.props.hideSubText ? ( - // Show subText below the main text eg - DatePicker control -
- {option.label} - {option.subText} -
+ {option.subText ? ( + this.props.hideSubText ? ( + // Show subText below the main text eg - DatePicker control +
+ {option.label} + {option.subText} +
+ ) : ( + // Show subText to the right side eg - Label fontsize control +
+ {option.label} + {option.subText} +
+ ) ) : ( - // Show subText to the right side eg - Label fontsize control -
- {option.label} - {option.subText} -
- ) - ) : ( - // Only show the label eg - Auto height control - {option.label} - )} + // Only show the label eg - Auto height control + {option.label} + )} +
))}