Disable drag while table columns are being resized (#1452)

* Fix resize

* Fix

* Make calendar not draggable from its body

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
This commit is contained in:
Navaneeth Pk 2021-11-24 18:01:21 +05:30 committed by GitHub
parent 29b20ce1e8
commit 9cc0023b9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,6 +207,7 @@ export const DraggableBox = function DraggableBox({
setDragging(false)
onDragStop(e, id, direction, currentLayout, currentLayoutOptions)
}}
cancel={`div.table-responsive.jet-data-table, div.calendar-widget`}
onDragStart={(e) => e.stopPropagation()}
enableResizing={mode === 'edit'}
onResizeStop={(e, direction, ref, d, position) => {