admin管理员组

文章数量:1391987

I'm using a Select component from Antd, and I'm looking to extend the list downwards using dropdownstyles. However, I'm unable to make the list extend down. Thanks

<Select
          className="brandInput"
          value={brand}
          defaultValue={"Business Sector"}
          size="large"
          dropdownStyle={{ height: '40vh' }}
          onChange={changeBrand}
        >
          {sortedBrandList.map((brand) => (
            <Option key={brand.code} value={brand.code}>
              {brand.label}
            </Option>
          ))}
        </Select>

本文标签: reactjsMaking dropdown extend list to bottom of dropdown on antdStack Overflow