Skip to content

Releases: dowjones/react-dropdown-tree-select

v2.0.2

16 Jun 23:48
Compare
Choose a tag to compare

2.0.2 (2019-06-16)

Bug Fixes

  • Remove resetting of dropdown on init props (#265) 🐛 (c2ec2fd), closes #253

v2.0.1

15 Jun 15:48
70bdd04
Compare
Choose a tag to compare

2.0.1 (2019-06-15)

Bug Fixes

v2.0.0

10 Jun 03:11
Compare
Choose a tag to compare

2.0.0 (2019-06-10)

Bug Fixes

Code Refactoring

  • Consolidate showDropdown props (#253) 🔨️ (655c45a)
  • Update mode to include hierarchical (#251) (637fe66)

Features

  • Added support for single select in tree dropdown (#217) (85b07ea), closes #119
  • Group logically related props together (#242) ⚡️ (007602b)

BREAKING CHANGES

Property changes

simpleSelect, placeHolderText, noMatchesText
Description Usage before Usage after
Added a new mode prop <DropdownTreeSelect simpleSelect ... /> <DropdownTreeSelect mode="simpleSelect" ... />
Bundled text props into a single object <DropdownTreeSelect placeholderText="My text" noMatchesText="No matches" ... /> <DropdownTreeSelect texts={{ placeholder: 'My text', noMatches: 'No matches' }} ... />
hierarchical prop

hierarchical prop is now moved under mode prop.

// before
<DropdownTreeSelect data={data} hierarchical={true} />

// after
<DropdownTreeSelect data={data} mode="hierarchical" />

Action Changes

  • The option to pass a local onAction handler on a node is now removed. Use the global onAction event instead.

    <DropdownTreeSelect onAction={onAction} ... />
  • onAction signature is now consistent with signature for other event handlers such onChange and onNodeToggle

    // before
    onAction = ({ action, id }) => {
      console.log(action, id)
    }
    
    // after
    onAction = (node, action) => {
      console.log(action, node.id)
    }
  • Any custom props passed to node or action is accessible in the event properties. This will make it easier to add generic custom logic based on your custom data/properties which can be used instead of separate handlers.

    For example:

    // node with action and custom props
    {
      id: 'mynode',
      propA: 'hello',
      propB: true,
      actions: [
        {
          id: 'myaction',
          propX: {...},
          propY: 12
        }
      ]
    }
    
    onAction = (node, action) => {
      console.log(node.propA, node.propB, action.propX, action.propY)
      // prints hello true {...} 12
    }

v1.20.1

06 May 01:54
1f24344
Compare
Choose a tag to compare

1.20.1 (2019-05-06)

Bug Fixes

  • Remove babel-runtime from distribution bundle (#248) 🔥 (1f24344)

v1.20.0

03 May 02:59
3e5381e
Compare
Choose a tag to compare

1.20.0 (2019-05-03)

Features

v1.19.0

23 Apr 23:38
Compare
Choose a tag to compare

1.19.0 (2019-04-23)

Features

  • Ability to keep the dropdown open always (#241) ✨ (4e1d5af), closes #239

v1.18.0

18 Apr 20:19
Compare
Choose a tag to compare

1.18.0 (2019-04-18)

Bug Fixes

Features

  • Added support for single select in tree dropdown (#217) (b3e7ec9), closes #119

v1.17.0

28 Mar 03:48
e7ca18c
Compare
Choose a tag to compare

1.17.0 (2019-03-28)

Bug Fixes

  • Do not allow delete of tags on disabled dropdown (#218) (65e8f73), closes #202

Features

v1.16.0

18 Feb 02:32
0b78b5d
Compare
Choose a tag to compare

1.16.0 (2019-02-18)

Features

v1.15.0

29 Dec 00:45
Compare
Choose a tag to compare

1.15.0 (2018-12-29)

Features

  • Support disabled/readOnly states ✨ (#200) (2a758ee)