Skip to content

Commit

Permalink
Bugfix: Sliders send decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
Koopzington committed Aug 27, 2024
1 parent 6ce784e commit b404420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## 2024-08-27
- Fixed a bug where sliders would pass decimal numbers to the API (e.g. UI shows 6 main characters but sends 5.6785)
- Updated dependencies
- @fontsource-variable/inter from 5.0.19 to 5.0.20
- datatables.net from 2.0.8 to 2.1.4
Expand Down
4 changes: 2 additions & 2 deletions src/Filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,8 @@ class Filters extends EventTarget {
}
// Handle Range instances
if (Object.hasOwn(f[1], 'noUiSlider')) {
params[f[0] + 'Min'] = f[1].noUiSlider.get(true)[0]
params[f[0] + 'Max'] = f[1].noUiSlider.get(true)[1]
params[f[0] + 'Min'] = f[1].noUiSlider.get()[0]
params[f[0] + 'Max'] = f[1].noUiSlider.get()[1]

return
}
Expand Down

0 comments on commit b404420

Please sign in to comment.