Releases: jakezatecky/react-dual-listbox
Releases · jakezatecky/react-dual-listbox
Release v6.0.3
Release v6.0.2
Release v6.0.1
Release v6.0.0
6.0.0 (2023-12-06)
This new version includes a variety of breaking changes. Please review them before upgrading.
Added
- Add
getOptionLabel
andgetOptionValue
properties to allow for custom keys beyondlabel
andvalue
(#208) - Add
LazyFilterExample.jsx
to demonstrate lazy loading for theoptions
property by user search
Changed
- Breaking:
onChange
property: the second argument now returns objects withlabel
,index
, andvalue
, instead of just values (#230) - Breaking:
icons
property:- Will now merge any missing keys with the default icons
- Rename
moveLeft
,moveAllLeft
,moveRight
, andmoveAllRight
tomoveToAvailable
,moveAllToAvailable
,moveToSelected
, andmoveAllToSelected
- Breaking:
iconsClass
property: now defaults to'fa6'
- Breaking:
id
property: no longer defaults to a random UUID when null and no longer used for some child components - Breaking:
lang
property:- Will now merge any missing keys with the default language
- Rename
moveLeft
,moveAllLeft
,moveRight
, andmoveAllRight
tomoveToAvailable
,moveAllToAvailable
,moveToSelected
, andmoveAllToSelected
- Split
filterPlaceholder
intoavailableFilterPlaceholder
andselectedFilterPlaceholder
- Breaking:
options
property: no longer has PropTypes validation forlabel
andvalue
(#208) - Breaking: Rename
*-right
and*-left
classes to*-to-selected
and*-to-available
- Improve accessibility of required error
- Change filter input to
type="search"
(#247)
Removed
- Breaking: Drop support for Less.js styles
- Breaking: Drop support for React before v16.8
- Breaking: Remove
rdl-sr-only
class - Drop usage of deprecated
defaultProps
(#248)
Fixed
- Fix positioning of action buttons relative to the list boxes
- Prevent situation where double-clicking an
optgroup
moved any selected options under it
icons
and lang
Migration Guide
The keys moveLeft
, moveAllLeft
, moveRight
, and moveAllRight
are now moveToAvailable
, moveAllToAvailable
, moveToSelected
, and moveAllToSelected
in all instances. Refer to the table below to rename any affected icons
or lang
keys:
Old Key Name | New Key Name |
---|---|
moveLeft |
moveToAvailable |
moveAllLeft |
moveAllToAvailable |
moveRight |
moveToSelected |
moveAllRight |
moveAllToSelected |
Release v4.0.0
v4.0.0 (2022-12-08)
Breaking Changes
- Replace
moveKeyCode
property withmoveKeys
(use keyboard keys instead) - Merge
filterPlaceholder
property intolang
property (seesrc/lang/default.js
) - Drop
arrayFrom
"ponyfill" and rely onarray.from
(causes problems with IE11, which is end-of-life)
New Features
- [#52]: Add
required
property
Bug Fixes
- Fix small border radius issues when
alignActions="top"
- Force Firefox to make input borders transparent when focus received (like Chrome)
Release v3.0.0
v3.0.0 (2022-10-24)
New Features
- [#76]: (breaking) Add
htmlDir
property to support RTL languages (defaults to LTR) - [#146]: Add styles for small viewport devices (<576px)
- [#203]: Add
controlKey
to theonChange
function such that developers may identify which control triggered the change - [#209]: (breaking) Add
iconsClass
, make icons more semantic, and support Unicode icons