mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Add ability to clear previous brush
This commit is contained in:
@@ -1458,6 +1458,14 @@
|
||||
isBrushing = false;
|
||||
end = offset;
|
||||
|
||||
// If the brush didn't go anywhere, hide the brush, clear value,
|
||||
// and return.
|
||||
if (start.x === end.x && start.y === end.y) {
|
||||
$brushDiv.hide();
|
||||
exports.onInputChange(inputId, null);
|
||||
return;
|
||||
}
|
||||
|
||||
} else if (isDragging) {
|
||||
isDragging = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user