- Make the underlying checkbox accessible to screen readers and touch (#276)
- Hide the pseudo-checkbox from the accessibility tree
- Change the clickable label from
role="link"torole="button"
id: No longer generates a random UUID when emptylang:- Replaced
togglekey withcollapseNodeandexpandNodeto better reflect state (#275) - Will now merge any missing keys with the default language
- Replaced
icons: Setting a node icon tonullwill no longer render the wrapper element (#30)iconsClass: Now defaults to'fa6'for Font Awesome 5/6 instead of Font Awesome 4
- Drop support for Less.js styles
- The
rct-optionsandrct-optionCSS classes are nowrct-actionsandrct-actionrespectively - The
rct-titleCSS class is nowrct-label
- Drop support for React before v16.8
- Fix various issues with the filtering example improperly rendering parents and child nodes (#153, #196, #216)
- Add full support for ESM environments
- Add
checkKeysproperty to allow specification of JavaScript keys to trigger check behavior - Add
onContextMenuproperty, which will trigger whenever a user right-clicks a node (#237) - The tree will now preserve original node properties (accessible via
onCheck/onExpand) (#421)
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
childrenarray
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
directionproperty to support RTL languages - [#211]: Throw an error when nodes have duplicate values
- [#244]: Add
expandNodesToLevelutility
- [#208]: Add missing
onCheckargument in TypeScript definition - [#248]: Add missing
onExpandargument in TypeScript definition
v1.6.0 (2019-12-11)
- [#13]: Add
checkModelproperty to specify which nodes should be stored in thecheckedarray (currently"all"and"leaf"supported) - [#126]: Add
iconsClassproperty and allow'fa5'to fully support Font Awesome 5 icons - [#171]: Allow parent nodes to have an empty
childrenarray
- [#127]: Change TypeScript definition of TreeNode's
labelproperty toReact.ReactNodeto better align with the PropType - [#145]: Fix alignment of many React properties to TypeScript typings
- [#180]: Fix issue where the
idproperty did not apply to the top-level CheckboxTree container
v1.5.0 (2019-01-25)
- [#116]: Add
idproperty to specify the DOM ID for the generated tree nodes - [#122]: Add
label,isLeaf,isParent,parent,treeDepth, andlevelmetadata to the target node ofonCheck,onClick, andonExpandhandlers
- [#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
labelproperty between PropType and TypeScript definitions
- [#115]: Add example react-fontawesome usage for the
iconsprop
v1.4.1 (2018-09-21)
- [#113]: Add missing
expandOpenproperty from TypeScript declaration (...again)
v1.4.0 (2018-09-21)
- [#114]: Add
rct-node-expandedandrct-node-collapsedclasses to expanded and collapsed parent nodes
- [#113]: Add missing
expandOpenproperty from TypeScript declaration
v1.3.1 (2018-09-06)
- [#109]: Fix erroneous PropTypes check for
langproperty
v1.3.0 (2018-09-05)
- [#79]: Add
showExpandAllproperty to give the user the ability to expand or collapse all nodes in the tree - [#96]: Add TypeScript definitions
- [#102]: Add
iconsproperty to allow specification of icon components - [#103]: Add
titlenode property andshowNodeTitletree property - [#108]: Add
langproperty 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
onClickproperty would trigger a warning about uniquekeyprop
v1.2.0 (2018-05-08)
- [#68]: Add
onClickandexpandOnClickproperties
- [#69]: Tree will no longer throw an exception if
checkedorexpandedcontains values that do not recursively exist in thenodesproperty
v1.1.0 (2018-03-31)
- [#53]: Add
nativeCheckboxesproperty to allow use of native browser checkboxes instead of pseudo-checkbox icons - [#72]: Add the node that triggers
onCheckoronExpandas a second parameter to the callback functions - [#80]: Add
onlyLeafCheckboxesproperty and supportshowCheckboxon 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
disabledto individual nodes - [#50]: Allow
node.labelto 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
disabledandexpandDisabledoptions to<CheckboxTree>
v0.6.2 (2017-05-25)
- [#34]: Add
noCascadeoption to decouple parent check state from children
v0.6.1 (2017-05-09)
- [#33]: Add a
prepublishcommand to ensure that the./libfolder is built before package is published to npm
v0.6.0 (2017-05-06)
- [#32]: Allow customization of
classNameat the node level - [#30]: Add
showNodeIconproperty 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-leafandrct-node-parentclasses to the TreeNode<li>element
v0.5.0 (2017-03-12)
- [#20]: Remove deprecated
titleproperty innodes(uselabelinstead)
- [#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
labelinnodesproperty 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
optimisticToggleconfiguration to toggle child nodes optimistically or pessimistically