Skip to content

Commit

Permalink
Update orientation prop to use direction field from field.ux object
Browse files Browse the repository at this point in the history
  • Loading branch information
zackatbrightbeam committed Jul 25, 2024
1 parent ae7c337 commit 3a7fd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/BasicEntitySliderField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const BasicEntitySliderFieldSpecShape = Gubu(Open({
max: Default(100),
props: {
valueLabelDisplay: Exact('on', 'auto', 'off').Default('auto'),
orient: Exact('horizontal', 'vertical').Default('horizontal'),
direction: Exact('horizontal', 'vertical').Default('horizontal'),
track: Exact('normal', 'inverted', 'disabled').Default('normal'),
},
})
Expand All @@ -50,7 +50,7 @@ function BasicEntitySliderField(props: any) {
render={({ field: { onChange, value } }) => (
<Slider
disabled={!field.ux.edit}
orientation={field.ux.orientation}
orientation={field.ux.direction}
track={field.ux.track}
valueLabelDisplay={field.ux.valueLabelDisplay}
step={field.ux.step}
Expand Down

0 comments on commit 3a7fd83

Please sign in to comment.