Skip to content
Bug reportNov 30, 2026· 0:20· 16 views

React-Grid-Layout 2.3.0: grid items snap abruptly when resizing — smooth transition removed

0:20 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

lowGrid item resize rendering in v2.3.0: the CSS transition on the grid item (transform/width/height) during and after resize, and how the resized item's size is synced with the placeholder.
os: macOSdpr: 1page: /react-grid-layout/examples/01-basic.htmllocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720page_title: RGL Example 01 - Basiclibrary_version: react-grid-layout v2.3.0 (badge on page)

Repro steps

  1. 1.Open /react-grid-layout/examples/01-basic.html (title 'RGL Example 01 - Basic').
  2. 2.Scroll down until the full grid of items 0 to 19 is visible.
  3. 3.Hover the bottom-right corner of item 0 until it highlights and the resize marker appears.
  4. 4.Drag the resize handle to the right to widen item 0.
  5. 5.Release the handle and watch item 0 settle to its final size.

Expected

While resizing, the item's drawn size matches the placeholder. On release the item moves smoothly into its snapped grid size, as earlier versions did with a CSS transition.

Actual

At 9s item 0 is drawn wider than the red placeholder area. At 11s it has settled to a narrower width of about 3 columns. The sampled frames do not show an animated transition between the two sizes, which matches the reported abrupt snap. Frames are 2s apart, so a short transition cannot be fully ruled out.

Evidence

visualItem 0 is stretched wide with a red placeholder fill and a yellow outline. The item's drawn box extends past the placeholder area. Items 1, 2, 7, 13 and 19 have shifted down.
visualItem 0 has settled at a noticeably narrower width than the drag preview. Items 2 and 8 are back in their original column positions. The matrix shows 13: [2, 8, 2, 3] and 19: [2, 11, 2, 2].
visualItem 0 before the resize, highlighted pink with the cursor and resize marker at its bottom-right corner. The original layout is 0: [0, 0, 2, 3].
visualHovering item 5 near its resize handle shows the normal pink highlight and handle with no layout change.
visualItem 5 renders about 1px right and down of grid alignment. It looks normal again at 17s. The cause is unclear and may be unrelated.
visualHovering items 4 and 8 near their resize handles shows normal highlights. Matrix values do not change from 11s through 19s.
Issue markdown (copy-paste ready)
## Summary
On the React-Grid-Layout v2.3.0 Basic example, resizing item 0 shows a drag preview larger than the placeholder. On release the item jumps to a smaller final size. No smooth transition was observed in the sampled frames.

## Environment
- Browser: Chromium 151.0.7922.34
- OS: macOS
- Viewport: 1280x720, DPR 1
- Page: `/react-grid-layout/examples/01-basic.html` (title 'RGL Example 01 - Basic')
- Version badge: v2.3.0

## Steps to reproduce
1. Open the Basic example (0s).
2. Scroll down to the full grid (3s).
3. Hover the bottom-right corner of item 0 until the resize marker appears (7s).
4. Drag the handle to the right (9s).
5. Release and watch item 0 settle (11s).

## Expected
The drawn item tracks the placeholder during resize. On release it animates smoothly into its snapped grid size.

## Actual
- At 9s item 0 is drawn wider than the red placeholder area.
- At 11s item 0 has settled at about 3 columns, narrower than the preview. Items 1, 7, 13 and 19 sit one row lower. Matrix shows `13: [2, 8, 2, 3]` and `19: [2, 11, 2, 2]`.
- The frames do not show an animated transition between the two sizes. Frames are 2s apart, so this is not fully confirmed.

## Evidence
- 7s: item 0 before resize, `0: [0, 0, 2, 3]`.
- 9s: preview box extends past the red placeholder.
- 11s: final size is smaller than the preview.
- 13s to 19s: hovering items 5, 4 and 8 near their resize handles shows normal highlights. Matrix values do not change.
- 15s: item 5 appears about 1px out of grid alignment, then looks normal at 17s. The cause is unclear.

## Suspected area
Grid item CSS transition during and after resize in v2.3.0, and how the resized item size is synced with the placeholder.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →
React-Grid-Layout 2.3.0: grid items snap abruptly when resizing — smooth transition removed · SceneRecap