Skip to content

Releases: trendmicro-frontend/react-dropdown

v1.4.0

12 Mar 15:24
Compare
Choose a tag to compare

Bump uncontrollable to 7.x (PR #36, closes #33)

v1.3.0

06 Sep 08:37
Compare
Choose a tag to compare

Address an issue that a header menu item may affect the left padding space of its subsequent menu items (2869746, close #19)

You can use Space component to add extra space to your menu item as below:

image

 <Dropdown open onToggle={() => {}}>
    <Dropdown.Toggle title="Select an option" />
    <Dropdown.Menu>
        <MenuItem header>
            Dropdown Header
        </MenuItem>
        <MenuItem>
            <Space width={16} />
            Menu item one (16px padding)
        </MenuItem>
        <MenuItem>
            <Space width={24} />
            Menu item two (24px padding)
        </MenuItem>
        <MenuItem divider />
        <MenuItem header>
            Dropdown Header
        </MenuItem>
        <MenuItem>
            Menu item three
        </MenuItem>
        <MenuItem divider />
        <MenuItem>
            Menu item four
        </MenuItem>
    </Dropdown.Menu>
</Dropdown>

v1.2.3

02 May 07:31
Compare
Choose a tag to compare

The alignment of dropdown menu wrapper should take effect when the pullRight prop is specified (ef6c623)

v1.2.2

28 Mar 02:57
Compare
Choose a tag to compare

Breaking

Remove "flex" prop to avoid warnings emitted by autoprefixer (a264f4d, #11)

v1.2.1

07 Mar 11:04
Compare
Choose a tag to compare

Flexbox layout support for DropdownMenuWrapper component (e0ca29f)

v1.2.0

09 Feb 08:27
Compare
Choose a tag to compare

deps: uncontrollable@^5.0.0 (8e00d01)

v1.1.0

11 Jan 09:36
Compare
Choose a tag to compare

Breaking

  • The href property is no longer available in the MenuItem component (d9b667f)

Enhancements

v1.0.0

04 Jan 10:51
Compare
Choose a tag to compare

Breaking Changes

  • Removed scrollable and maxHeight from DropdownMenu's props (c54c9aa)
  • Do not transform the header font into uppercase characters (2f828c1)
  • Removed DropdownSubMenu component (2dc5b71)
  • Refactors the code that simplifies the structure of a multi-level dropdown menu (2dc5b71)
<Dropdown>
    <Dropdown.Toggle>Select an option</Dropdown.Toggle>
    <Dropdown.Menu>
        <MenuItem>
            Menu item one
        </MenuItem>
        <MenuItem>
            Menu item two
        </MenuItem>
        <MenuItem>
            Menu item three
        </MenuItem>
        <MenuItem divider />
        <MenuItem>
            Menu item four
            <MenuItem>
                Second level item one
            </MenuItem>
            <MenuItem>
                Second level item two
            </MenuItem>
            <MenuItem>
                Second level item three
                <MenuItem>
                    Third level item one
                </MenuItem>
            </MenuItem>
        </MenuItem>
    </Dropdown.Menu>
</Dropdown>

Improvements

  • Replace dropdownRole with componentType (3f66eba)

v0.7.3

27 Dec 07:33
Compare
Choose a tag to compare

The dropdown menu wrapper does not have the same z-index property as well as dropdown menu (4e7315a, #5)

v0.7.2

06 Nov 07:17
Compare
Choose a tag to compare

Bump to v0.7.2

  • Fixed an issue that causes dropdown to close when clicking an input field above the dropdown menu (e6b6727, #4)