From f26c8a75a5e7ad667eb6dbc4d392dac32e51dc10 Mon Sep 17 00:00:00 2001 From: Dovydas <41839786+LiniovasDovydas@users.noreply.github.com> Date: Thu, 16 Jun 2022 15:15:01 +0300 Subject: [PATCH] fix: Allow resize to last visible slot Resolves issue with resizing an event to the end of the viewable TimeGrid #2147 --- src/Selection.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Selection.js b/src/Selection.js index b2d3b5307..e64247d1d 100644 --- a/src/Selection.js +++ b/src/Selection.js @@ -323,16 +323,14 @@ class Selection { return this.emit('reset') } - if (!inRoot) { - return this.emit('reset') - } - if (click && inRoot) { return this._handleClickEvent(e) } // User drag-clicked in the Selectable area if (!click) return this.emit('select', bounds) + + return this.emit('reset') } _handleClickEvent(e) {