Skip to content

Commit

Permalink
improve inherited width behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
goranalkovic-infinum committed Sep 17, 2024
1 parent 9436aff commit cd2e492
Showing 1 changed file with 1 addition and 1 deletion.
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 Down

0 comments on commit cd2e492

Please sign in to comment.