All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.11.0 (2020-01-20)
1.10.1 (2019-08-22)
- PropType definition for keyCodes was incorrect (eaf5070)
1.10.0 (2019-08-22)
- don't spread the keysToOmit parameter in omit util (#563) (1c69772)
- Fix broken UMD build (#587) (6cb7750)
- remove browser field with umd bundle (#541) (d3b30fd
1.9.1 (2019-04-24)
- do not copy canvas context if it has neither width nor height (#530) (3808437)
- pass isKeySorting to onSortOver and updateBeforeSortStart handler props (#531) (763fd33
1.9.0 (2019-04-23)
- issue with radio input name collision when cloning helper (5337c97)
- add support for keyboard sorting (#501) (439b92f)
- prevent sort start on contentEditable target (d64c8cf)
1.8.3 (2019-03-20)
- issue with windowAsScrollContainer and translation offsets (0391e62)
- Add disableAutoscroll prop (#484) (7845e76)
- added helperContainer prop (286eff4)
- allow helperContainer prop to be a function returning an HTMLElement (#489) (f4a9b4a)
- Detect scroll container automatically (#507) (6572921)
1.8.2 (2019-03-19)
- issue with getComputedStyle and getScrollingParent (b104249)
1.8.1 (2019-03-18)
1.8.0 (2019-03-18)
- added prop-types to peerDependencies (0e855c5)
- copy canvas content into cloned node (43ad122)
- get updated index after updateBeforeSortStart (4471a0a)
- helperContainer PropType definition broke server-side rendering (#471) (c0eef97)
- lock axis story should not use lockToContainerEdges (db1d3a9)
- omit disableAutoscroll prop (#502) (e994e73)
- omit spreading helperContainer prop (#497) (12bafdf)
- overflow bug while dragging an item upwards in a grid (1a2c87e)
- replace process.env.NODE_ENV in UMD builds (16135df)
- update helperContainer prop type definition (#491) (fd30383)
- updated the behaviour of disabled elements (bd3d041)
- virtualized collection grid bug (a57975c)
- Add disableAutoscroll prop (#484) (7845e76)
- added helperContainer prop (286eff4)
- allow helperContainer prop to be a function returning an HTMLElement (#489) (f4a9b4a)
- Detect scroll container automatically (#507) (6572921)
1.7.1 (2019-03-06)
- updated the behaviour of disabled elements (bd3d041)
1.7.0 (2019-03-06)
- updated the behaviour of disabled elements (bd3d041)
1.6.1 (2019-02-11)
1.6.0 (2019-02-07)
1.5.4 (2019-02-07)
- overflow bug while dragging an item upwards in a grid (1a2c87e)
- virtualized collection grid bug (a57975c)
1.5.3 (2019-01-25)
1.5.2 (2019-01-22)
1.5.1 (2019-01-22)
1.5.0 (2019-01-22)
- allow helperContainer prop to be a function returning an HTMLElement (f4a9b4a)
1.4.0 (2019-01-10)
- Fix CommonJS and UMD builds by using Rollup and Babel to generate the bundles (#474)
1.3.0 (2019-01-08)
1.2.0 (2019-01-08)
- added helperContainer prop (286eff4)
1.1.0 (2019-01-07)
- added updateBeforeSortStart prop (162857b)
1.0.0 (2019-01-07)
- The UMD release no longer includes babel-polyfill, you will need to include your own polyfills in order to support older browsers.
- Fix a bug when you use SortableHandle and distance prop #447
- Fix: TouchEvent is undefined in certain browsers, such as Safari #382
- Fix scrolling issues on mobile with anchor tag elements #380
- Update TypeScript type definition for ContainerGetter to accept Promises that return HTMLElements
- Allow
getContainer
to return a promise. This is useful when the container node is rendered by a parent component, sincecomponentDidMount
fires backwards (from child to parent) #155
- Fix typo in getLockPixelOffset helper
- Fix issues with distance and pressThreshold props on mobile #378
- Fix issues with TypeScript type definitions
- Provide TypeScript type definitions out of the box #377
- Fix potential issues with calling
removeEventListeners
oncomponentWillUnmount
if the container node has already unmounted #376
- [Breaking change] Removed lodash dependency. For users wishing to support Internet Explorer, a polyfill for Array.prototype.find will be required
- Added
onSortOver
prop that gets invoked when sorting over an element #278 - Fix
useWindowAsScrollContainer
#306
Update react and react-dom peerdependency requirements for React 16+ #283. Thanks @jnsdls!
Fixes issues with Jest Snapshot testing trying to serialize the window
object and running out of memory #249. Thanks @cameronmcefee!
Fixes an issue with Internet Explorer 11 introduced in 0.6.5
#248. Thanks @humiston!
Fixes the position of the sortable helper when the page is scrolled #213
Fix: when cloning the element that is being sorted, we no longer update the value of cloned file inputs #232
Fixes issues caused by a disabled SortableElement being moved when distance
is set to a value other than 0
Use prop-types
package for PropType validation for compatibility with React ^15.5
Tweak: default to pointerEvents: none
on sortable helper, this way the underlying view can still be scrolled using the trackpad/mousewheel while sorting #160
Feature: added pressThreshold
prop to make pressDelay
fault tolerant #159
Tweak: button
elements are now included in the default shouldCancelStart
implementation #142.
Fix: Omit getHelperDimensions
before passing down props in SortableContainer
Fix: This release fixes some issues caused by the onSortEnd
callback being invoked before setState
#82.
Fix: This version fixes issues with nested SortableContainer
elements using drag handles from also dragging their parent #112, #127(clauderic#127). Thanks @DeadHeadRussell!
Fix: This release fixes a bug introduced in 0.4.8
caused by calling the forEach
method directly on a NodeList, which is undefined in a number of browsers #125
Fix: Added logic to ensure that select
, input
and textarea
fields in SortableElement
always retain their value
when the element is cloned (this happens when sorting begins) #122 #123. Thanks @tomasztomys!
Fix: This release fixes a bug in Firefox caused by active anchor tags preventing mousemove events from being fired #118
Fix: getHelperDimensions height was not being used (Thanks @SMenigat!)
Tweak: cherry-picking lodash methods instead of importing the entire bundle (slipped by in a PR, thanks for pointing this out @arackaf!)
Fixes an edge-case bug in Firefox where window.getComputedStyle() returns null inside an iframe with display: none
#106. Thanks @funnel-mark!
Fixes an issue when attempting to sort items while rapidly moving the mouse. By setting an immediate timer, we move the cancel event to the tail of the timer queue, and ensure that it is fired after the pressTimer #80. Thanks @v0lkan!
- Fix a timing issue in Chrome caused by setTimeout #71
- Private props are no longer passed down to the wrapped component #98
Added grid support for elements of equal widths / heights #4 #86. Huge shout-out to @richmeij for making this happen!
Add a getHelperDimensions
prop to control SortableHelper size #83. Thanks @nervetattoo!
Added touchCancel
listener to properly handle canceled touches #73
- Force
box-sizing: border-box
on sortable helper #67 - Support changing an item's collection prop on the fly #66
Utilize babel-plugin-transform-runtime to utilize babelHelpers
without them being required in application code #45
The arrayMove
helper no longer mutates the array, it now returns a new array #61
Server-side rendering bugfix: safeguard against document
being undefined #59
- Added
distance
prop (#35) - Added a
shouldCancelStart
(#47, #36, #41) prop to programatically cancel sorting before it begins. - Prevent right click from causing sort start (#46)
Fixes server-side rendering (window undefined) (#39)