Skip to content

Commit 14776a3

Browse files
authored
Merge pull request #764 from acelaya-forks/feature/fix-drag-n-drop
Fix line chart selection triggering after clicking a dot in the chart
2 parents 4b739f2 + 477f338 commit 14776a3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7-
## [Unreleased]
7+
## [0.16.1] - 2025-08-08
88
### Added
99
* [#755](https://github.com/shlinkio/shlink-web-component/issues/755) Add support for `any-value-query-param` and `valueless-query-param` redirect conditions when using Shlink >=4.5.0.
1010
* [#756](https://github.com/shlinkio/shlink-web-component/issues/756) Add support for desktop device types on device redirect conditions, when using Shlink >=4.5.0.
@@ -23,7 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2323
* *Nothing*
2424

2525
### Fixed
26-
* *Nothing*
26+
* [#698](https://github.com/shlinkio/shlink-web-component/issues/698) Fix line chart selection triggering after clicking a dot in the chart. It now works only when dragging while the mouse is clicked.
2727

2828

2929
## [0.16.0] - 2025-07-28

src/visits/charts/LineChartCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const LineChartCard: FC<LineChartCardProps> = (
285285
}, [chartData, selectionStart]);
286286
const updateDateRange = useCallback(() => {
287287
if (!selectionStart || !selectionEnd) {
288+
resetSelection();
288289
return;
289290
}
290291

0 commit comments

Comments
 (0)