Skip to content

Commit

Permalink
improve widthoffsetrangeslider behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
goranalkovic-infinum committed Sep 17, 2024
1 parent 306ea9a commit 9436aff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [13.0.4]

### Changed
- Tweaked auto offset calculation in `WidthOffsetRangeSlider`.

## [13.0.3]

### Changed
Expand Down Expand Up @@ -1358,6 +1363,7 @@ Follow this migration script in order for you project to work correctly with the
- Initial tagged release.

[Unreleased]: https://github.com/infinum/eightshift-frontend-libs/compare/master...HEAD
[13.0.4]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.3...13.0.4
[13.0.3]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.2...13.0.3
[13.0.2]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.1...13.0.2
[13.0.1]: https://github.com/infinum/eightshift-frontend-libs/compare/13.0.0...13.0.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eightshift/frontend-libs",
"version": "13.0.3",
"version": "13.0.4",
"description": "A collection of useful frontend utility modules. powered by Eightshift",
"author": {
"name": "Eightshift team",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export const WidthOffsetRangeSlider = (props) => {
? String(w - nearestValidOffset + 1)
: w - nearestValidOffset + 1;
} else if (!isWidthInherited && offset === autoOffsetValue) {
const newWidth = w - autoStartOffset;
const newWidth = w - autoStartOffset + 1;

if (newWidth > 0) {
newValues.width = stringValues
Expand Down

0 comments on commit 9436aff

Please sign in to comment.