marcospont / agnostic-draggable

An agnostic set of libraries implementing draggable, droppable, sortable and resizable behaviors inspired by the jQuery UI implementation
MIT License
39 stars 7 forks source link

Guarantee revert 'valid' or 'invalid' #18

Closed emersonhinterholz closed 2 months ago

emersonhinterholz commented 4 months ago

https://github.com/marcospont/agnostic-draggable/blob/b1b144a67116195b3e4744718e7ef638ce48f8c6/src/draggable/draggable.js#L457

Here, configuring the revert as any string, the code will consider as a true boolean. Probably a revert === true would fix.

marcospont commented 2 months ago

This issue was fixed by https://github.com/marcospont/agnostic-draggable/commit/b0cd9bae5cb61cfc4ffa48caa0902b6cbed27a47.