Skip to content

Commit

Permalink
feat(Slider): deprecate use_scrollwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Jan 9, 2023
1 parent 5f28687 commit 00d4143
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ showTabs: true
| `globalStatusId` | _(optional)_ the `status_id` used for the target [GlobalStatus](/uilib/components/global-status). |
| `suffix` | _(optional)_ text describing the content of the Slider more than the label. You can also send in a React component, so it gets wrapped inside the Slider component. |
| `skeleton` | _(optional)_ if set to `true`, an overlaying skeleton with animation will be shown. |
| ~~`use_scrollwheel`~~ | _(optional)_ enable mouse scroll-wheel support. Defaults to `false`. |
| [Space](/uilib/components/space/properties) | _(optional)_ spacing properties like `top` or `bottom` are supported. |
8 changes: 0 additions & 8 deletions packages/dnb-eufemia/src/components/slider/SliderProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import { includeValidProps } from '../../components/form-row/FormRowHelpers'
import {
warn,
isTrue,
makeUniqueId,
dispatchCustomElementEvent,
Expand Down Expand Up @@ -123,13 +122,6 @@ export function SliderProvider(localProps: SliderAllProps) {
}
}

/**
* Deprecated
*/
if (allProps.use_scrollwheel) {
warn('use_scrollwheel is not supported anymore!')
}

const getAndUpdateCurrentIndex = (currentValue: number) => {
let currentIndex = null

Expand Down
3 changes: 0 additions & 3 deletions packages/dnb-eufemia/src/components/slider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ export type SliderProps = IncludeSnakeCase<{
/** @deprecated */
onInit?: (props: Omit<onChangeEventProps, 'rawValue'>) => void

/** @deprecated The Slider does not support mouse wheel */
use_scrollwheel?: boolean

children?: React.ReactChild
}>

Expand Down

0 comments on commit 00d4143

Please sign in to comment.