React Dropzone Versions Save

Simple HTML5 drag-drop zone with React.js.

v14.2.3

1 year ago

14.2.3 (2022-10-12)

Bug Fixes

v14.2.2

1 year ago

14.2.2 (2022-07-03)

Bug Fixes

  • allow {accept} file selection w/o using the OS options (8127759)

v14.2.1

2 years ago

14.2.1 (2022-05-07)

Bug Fixes

  • call onError if FS access API fails in secure ctx (a2039fd)

v14.2.0

2 years ago

14.2.0 (2022-05-03)

Features

  • bump file-selector to v0.6 (239dd29)

v14.1.2

2 years ago

14.1.2 (2022-05-03)

Bug Fixes

  • add missing onError type (7aff9a5)

v14.1.1

2 years ago

14.1.1 (2022-05-02)

Bug Fixes

  • apply custom validator on {isDragAccept,isDragReject} (2d33fdf)

v14.1.0

2 years ago

14.1.0 (2022-05-02)

Features

  • add option to auto focus the root and close #1145 (1b91e50)

v14.0.1

2 years ago

14.0.1 (2022-05-01)

Bug Fixes

  • use aria role presentation by default and close #1152 (7a2f405)

v14.0.0

2 years ago

14.0.0 (2022-05-01)

Features

BREAKING CHANGES

  • the {draggedFiles} prop on the returned hook state has been removed and the accept/reject state is only computed on drag enter and drop.

v13.0.0

2 years ago

13.0.0 (2022-04-30)

Features

  • add {onError} cb to allow users to handle errors (9134893)
  • allow passing file ext. to the file picker options and close #1141 (58976f4)

BREAKING CHANGES

  • The {accept} prop will now require an object instead of a string or array of strings:

Before:

useDropzone({
  accept: ".jpeg,.png"
  // accept: [".jpeg", ".png"]
})

After:

useDropzone({
  accept: {
    "image/*": [".jpeg", ".png"]
  }
})