Changelog History
Page 1
-
v1.2.0
November 17, 2020 -
v1.1.1
September 10, 2020 -
v1.1.0
September 03, 2020 -
v1.0.0
July 20, 2020 -
v0.18.2
February 26, 2020๐ Bugfixes
shouldComponentUpdate
:- A too-aggressive implementation of
shouldComponentUpdate
was shipped in 0.18.0-0.18.1 (#1123), which did not compare thechildren
object. While this works well in many simple implementations of RGL, it breaks in more complex applications. - Reference equality of
props.children
andnextProps.children
is now added to<ReactGridLayout>
and<GridItem>
. If you wish to take advantage of the performance improvements from theshouldComponentUpdate
work, memoize your children. - A section has been added to the README explaining how this works.
- Fixed #1150, #1151.
- A too-aggressive implementation of
-
v0.18.1
February 25, 2020๐ This release contains typedef changes only.
๐ Bugfixes
- Flow types:
- Make Props to
<ReactGridLayout>
and<ResponsiveReactGridLayout>
exact. - Fix loss of props refinement when passing through
WidthProvider
. - Fix Flow errors as surfaced in #1138.
- Modify examples to use types so that the above type error can't resurface
- Make Props to
- Flow types:
-
v0.18.0
February 25, 2020๐ Thanks to all of our maintainers for this big release. 0.18.0 contains a large number of bugfixes that users have been asking for. Please read the full list so you know what to expect. Some of the biggest improvements include fixing changes of
isResizable
/isDraggable
without a remount (#892), fixes to prop changes onResponsiveReactGridLayout
(#1090),shouldComponentUpdate
improvements for speed (#1123), improvements to droppability (#1127), and much more.(Potentially) Breaking Changes
- You can now locally set
isDraggable
/isResizable
on astatic
item and it will have that property. This could be useful, but be sure to check your layouts if you usestatic
. Relates to #1060. - โก๏ธ
shouldComponentUpdate
is now implemented on major components to improve render speed while you manipulate the layout. In our testing there are no issues. If you encounter one, please open an issue asap and we'll get it fixed. See #1123.
๐ New Features
- You can now manipulate
isDraggable
/isResizable
without the child component remounting. We do this by always rendering the child<Resizable>
and<Draggable>
wrappers, optionally in adisabled
state. This feature has been heavily requested. #892 - The event is now passed as
e
on theonDrop
callback. #1065 - Pass
transformScale
toResizable
. #1075
๐ Bugfixes
- ๐ Fix handling of width changes in
ResponsiveReactGridLayout
. #1090- Fixes ignored changes of breakpoints and columns. See also issue #1083.
- Forbid layout change on click without drag. #1044
- Do not mutate
layouts
prop. #1064 - Ensure locally set
isDraggable
/isResizable
on aGridItem
overrides the global setting on the layout. #1060 - Avoid additional element jumping when an item is dropped. #1127
- โ
Don't use
String#includes
for Firefox test. #1096
โป๏ธ Internal Refactors
- โ Added
shouldComponentUpdate
to major elements for speed. Significant performance improvements while dragging. Started in #1032 and finished in #1123. - โป๏ธ Internal refactor of dropping capability. It is now more predictable and uses similar unit labels (
left
,top
) to other features. #1128 - โฌ๏ธ Upgrade devDependencies.
- โ Remove ESPower from test suite (not useful with Jest).
- You can now locally set
-
v0.17.0
October 24, 2019๐ It's been 18 months since the last release, and this is a pretty large one! For references on the items below, see https://github.com/STRML/react-grid-layout/milestone/1?closed=1.
Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, and for giving it a much-needed shot in the arm, and thanks to the rest of our contributors.
๐ New Features
- โ Added ability to drag items into the grid from outside. #980. See the example.
- This is especially exciting as it opens up new "widget toolbox" use cases such as Example 14 with more intuitive interaction. Thanks @daynin.
transformScale
prop #987- ๐ฑ
<ResponsiveReactGridLayout>
now supports margin-per-breakpoint #1016
๐ Bugfixes
onWidthChange
only called on breakpoint changes #770- ๐ Various movement bugs when compaction is off #766
- Don't fire
onDragStop
if an item is only clicked, not dragged #1023 - ๐ Fix infinite loop when dragging over a static element. #1019
โป๏ธ Internal Refactors
- โ Added ability to drag items into the grid from outside. #980. See the example.