Skip to content

Releases: tajo/react-movable

v3.4.1

26 Feb 16:27
3b38363

Choose a tag to compare

Patch Changes

v3.4.0

17 Dec 23:16
a53fc88

Choose a tag to compare

Minor Changes

v3.3.1

21 Jul 20:29
4b9aa77

Choose a tag to compare

Patch Changes

v3.3.0

21 Jul 05:14
59a8f55

Choose a tag to compare

Minor Changes

Library exported as ESM

03 Nov 19:26

Choose a tag to compare

The library is now pure ESM and it can't be loaded through require() anymore.

More details, questions, answers.

Add the container prop

01 May 18:23

Choose a tag to compare

container

container?: Element;

Provide custom DOM element where moved item will be rendered.

Handle interactive elements

11 Dec 23:36

Choose a tag to compare

When you start putting things like inputs into your list items, you could get into troubles. React Movable is now smarter and ignores mouse/keyboard inputs when you are trying to type or click. There's a new example:

Screen Shot 2019-12-11 at 3 35 01 PM

Also, all deps are updated and React Hooks in all examples.

Add Drop Animation

16 Oct 19:02

Choose a tag to compare

The drop is now animated so it provides user a nice visual feedback. Previously, it just re-appeared in the final position. The length of animation is controlled by the transitionDuration prop.

This release also fixes a bug when an item move far top didn't end up reordered.

Before

old

After

animated

Remove items by moving them out of bounds

02 Jul 21:57

Choose a tag to compare

There is a new removableByMove top API that will allow you to remove items when being moved far left or right. PR. Example.

removable

This also adds targetRect as an another parameter that's being passed to you through onChange callback. This can be useful when you want to detect where exactly the item was dropped.

beforeDrag and disabled items

01 Jul 21:29

Choose a tag to compare

There is a new top level API beforeDrag that allows to do some measurements of elements and implement a table with dynamic column widths.

Items now recognize disable: true prop that prevents them to be dragged. Example.

/* ... */
state = {
    items: [
      { label: 'Item 1' },
      { label: 'Item 2' },
      { label: 'Item 3' },
      { label: 'Item 4', disabled: true },
      { label: 'Item 5', disabled: true },
      { label: 'Item 6' }
    ]
  };
  render() {
    return (
      <List
        values={this.state.items}
/* ... */