function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srikar kothakapu 17srikar kothakapu 17 

picklist values are hidden in the modal box in lwc

Hi,
Picklist values are cutting off/truncated in the modal box. I have 10 picklist values to be displayed but when opened the combobox in ligtening it is showing only 3.
Could you please help me out fixing this issue.

Here is the code:
 <div class="slds-modal__content slds-p-around_medium">
                           <div class="slds-text-color_error">{requiredError}</div>
                    <lightning-combobox class="validValue" name="reason" label="Reason" value={reason}
                            placeholder="Select Closed Loss Reason" options={picklistOptions.data.values}
                            onchange={handleChangePicklist} required>
                    </lightning-combobox>

Thank you,
Srikar
Saravanan @CreationSaravanan @Creation
Helli Srikar,

I have tried the below code and I didn't face this issue.

<template>
<lightning-combobox
name="progress"
label="Status"
value={value}
placeholder="Select Progress"
options={options}
onchange={handleChange} ></lightning-combobox>
</template>


Could you please remove your validValue class.  And also you can give a try with the below blog.

https://sfdcmonkey.com/2018/01/09/change-lightningcombobox-dropdown-options-size/

Thanks,