Skip to content

Commit

Permalink
Merge pull request jupyter-widgets#3113 from davidbrochart/fix_slider
Browse files Browse the repository at this point in the history
Fix slider format
  • Loading branch information
SylvainCorlay authored Feb 11, 2021
2 parents ca0da9d + e443854 commit d23eddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controls/src/widget_int.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export abstract class BaseIntSliderView extends DescriptionView {
orientation: orientation,
direction: orientation === 'horizontal' ? 'ltr' : 'rtl',
format: {
from: (value: number): number => value,
from: (value: string): number => Number(value),
to: (value: number): number => value
}
});
Expand Down

0 comments on commit d23eddc

Please sign in to comment.