Skip to content

Commit

Permalink
Merge pull request #842 from infinum/release/13.0.4
Browse files Browse the repository at this point in the history
13.0.4
  • Loading branch information
goranalkovic-infinum authored Sep 17, 2024
2 parents 306ea9a + cd2e492 commit bd896d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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 @@ -207,7 +207,7 @@ export const WidthOffsetRangeSlider = (props) => {
key={breakpoint}
aria-label={__('Width & offset', 'eightshift-frontend-libs')}
columns={totalNumberOfColumns}
value={[parsedOffset, displayedWidth]}
value={isWidthInherited && !isOffsetInherited ? [parsedOffset, parsedOffset + 1] : [parsedOffset, displayedWidth]}
showOuterAsGutter={showOuterAsGutter ?? parsedFullWidth}
onChange={([o, w]) => {
let newValues = {};
Expand All @@ -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 bd896d5

Please sign in to comment.