- The
iconsClass
property now defaults to"fa5"
for Font Awesome 5/6 instead of Font Awesome 4
- Hide the pseudo-checkbox from the accessibility tree
- Change the clickable label from
role="link"
torole="button"
v1.8.0 (2022-09-06)
- [#329] Add React 18 to the peer dependency list (Note: React 18 is not part of the automatic testing, but should work)
v1.7.3 (2022-05-23)
- [#258]: Fix check behavior on nodes with an empty
children
array
v1.7.2 (2021-08-09)
- [#281]: Fix accessibility issues with checkbox nodes
- [#288]: Fix issue with custom checkbox icons appearing when
nativeCheckboxes={true}
v1.7.1 (2021-06-08)
- Fix build issues for default exports
v1.7.0 (2021-06-08)
- [#182]: Add
direction
property to support RTL languages - [#211]: Throw an error when nodes have duplicate values
- [#244]: Add
expandNodesToLevel
utility
- [#208]: Add missing
onCheck
argument in TypeScript definition - [#248]: Add missing
onExpand
argument in TypeScript definition
v1.6.0 (2019-12-11)
- [#13]: Add
checkModel
property to specify which nodes should be stored in thechecked
array (currently"all"
and"leaf"
supported) - [#126]: Add
iconsClass
property and allow'fa5'
to fully support Font Awesome 5 icons - [#171]: Allow parent nodes to have an empty
children
array
- [#127]: Change TypeScript definition of TreeNode's
label
property toReact.ReactNode
to better align with the PropType - [#145]: Fix alignment of many React properties to TypeScript typings
- [#180]: Fix issue where the
id
property did not apply to the top-level CheckboxTree container
v1.5.0 (2019-01-25)
- [#116]: Add
id
property to specify the DOM ID for the generated tree nodes - [#122]: Add
label
,isLeaf
,isParent
,parent
,treeDepth
, andlevel
metadata to the target node ofonCheck
,onClick
, andonExpand
handlers
- [#119]: Fix issue where an initially disabled tree could not be enabled after the initial render
- [#120]: Fix issue where Internet Explorer and Microsoft Edge browsers would fail to update check state when a parent was in a half-check or indeterminate state
- [#125]: Fix misalignment of TreeNode's
label
property between PropType and TypeScript definitions
- [#115]: Add example react-fontawesome usage for the
icons
prop
v1.4.1 (2018-09-21)
- [#113]: Add missing
expandOpen
property from TypeScript declaration (...again)
v1.4.0 (2018-09-21)
- [#114]: Add
rct-node-expanded
andrct-node-collapsed
classes to expanded and collapsed parent nodes
- [#113]: Add missing
expandOpen
property from TypeScript declaration
v1.3.1 (2018-09-06)
- [#109]: Fix erroneous PropTypes check for
lang
property
v1.3.0 (2018-09-05)
- [#79]: Add
showExpandAll
property to give the user the ability to expand or collapse all nodes in the tree - [#96]: Add TypeScript definitions
- [#102]: Add
icons
property to allow specification of icon components - [#103]: Add
title
node property andshowNodeTitle
tree property - [#108]: Add
lang
property for language customization
- [#61]: Fix issue where disabled children would be checked if a parent node was checked
- [#91]: Prevent disconnection between Sass and Less files on build
- [#97]: Some performance optimizations
v1.2.4 (2018-08-29)
- [#82], [#84]: Fix undefined Crypto API errors in Node environments
- [#104]: Fix issue where numeric node values could trigger PropType warnings
v1.2.3 (2018-06-23)
- [#81]: Fix render errors for all numeric value types
v1.2.2 (2018-05-24)
- [#89]: Fix misnamed variables in the Less stylesheets
- [#90]: Coerce NaN types to string when outputting DOM IDs
v1.2.1 (2018-05-10)
- [#87]: Fix issue where passing the
onClick
property would trigger a warning about uniquekey
prop
v1.2.0 (2018-05-08)
- [#68]: Add
onClick
andexpandOnClick
properties
- [#69]: Tree will no longer throw an exception if
checked
orexpanded
contains values that do not recursively exist in thenodes
property
v1.1.0 (2018-03-31)
- [#53]: Add
nativeCheckboxes
property to allow use of native browser checkboxes instead of pseudo-checkbox icons - [#72]: Add the node that triggers
onCheck
oronExpand
as a second parameter to the callback functions - [#80]: Add
onlyLeafCheckboxes
property and supportshowCheckbox
on the node-level
v1.0.2 (2017-10-24)
- [#57]: Fix an issue where node values with spaces in them would cause validation errors
v1.0.1 (2017-09-30)
- [#54]: Add support for React 16
v1.0.0 (2017-09-21)
- [#49]: Add the ability to specify
disabled
to individual nodes - [#50]: Allow
node.label
to be any valid React node
- [#51]: Apply additional background color when a node is active
v0.6.4 (2017-07-22)
- [#42]: Fix npm package not aligning with Git version
v0.6.3 (2017-05-30)
The v0.6.x series will likely be the last series before the v1.0 release. The API is not expected to significantly change, but new features will not be added to pre-1.0 versions.
- [#35]: Add
disabled
andexpandDisabled
options to<CheckboxTree>
v0.6.2 (2017-05-25)
- [#34]: Add
noCascade
option to decouple parent check state from children
v0.6.1 (2017-05-09)
- [#33]: Add a
prepublish
command to ensure that the./lib
folder is built before package is published to npm
v0.6.0 (2017-05-06)
- [#32]: Allow customization of
className
at the node level - [#30]: Add
showNodeIcon
property to optionally remove node icons
- [#14]: Component performance when rendering and updating a large number of nodes has been significantly increased
v0.5.2 (2017-05-03)
- [#31]: Fix issue where expand buttons would submit a parent form
v0.5.1 (2017-03-21)
- [#27]: Add
rct-node-leaf
andrct-node-parent
classes to the TreeNode<li>
element
v0.5.0 (2017-03-12)
- [#20]: Remove deprecated
title
property innodes
(uselabel
instead)
- [#2]: Allow customization of icons via CSS
- [#26]: Allow icon customization at node level
v0.4.2 (2017-02-27)
- [#22]: Remove expand-like behavior on nodes without children
- [#23]: Fix issue where property validation was not occurring on node items
v0.4.1 (2017-02-15)
- [#20]: Add support for
label
innodes
property and deprecatetitle
- [#21]: Add greater accessibility support
v0.4.0 (2017-01-27)
- [#17]: Auto-prefix CSS styles to support older browsers
- [#18]: Remove unnecessary margin on tree lists
- [#15]: Provide
optimisticToggle
configuration to toggle child nodes optimistically or pessimistically