diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/slider/properties.md b/packages/dnb-design-system-portal/src/docs/uilib/components/slider/properties.md index cda424d80c2..355aacb7c8e 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/slider/properties.md +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/slider/properties.md @@ -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. | diff --git a/packages/dnb-eufemia/src/components/slider/SliderProvider.tsx b/packages/dnb-eufemia/src/components/slider/SliderProvider.tsx index fae1180dfa3..7c7d976ddbf 100644 --- a/packages/dnb-eufemia/src/components/slider/SliderProvider.tsx +++ b/packages/dnb-eufemia/src/components/slider/SliderProvider.tsx @@ -1,7 +1,6 @@ import React from 'react' import { includeValidProps } from '../../components/form-row/FormRowHelpers' import { - warn, isTrue, makeUniqueId, dispatchCustomElementEvent, @@ -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 diff --git a/packages/dnb-eufemia/src/components/slider/types.ts b/packages/dnb-eufemia/src/components/slider/types.ts index 44d360b8baa..b91cb25d938 100644 --- a/packages/dnb-eufemia/src/components/slider/types.ts +++ b/packages/dnb-eufemia/src/components/slider/types.ts @@ -112,9 +112,6 @@ export type SliderProps = IncludeSnakeCase<{ /** @deprecated */ onInit?: (props: Omit) => void - /** @deprecated The Slider does not support mouse wheel */ - use_scrollwheel?: boolean - children?: React.ReactChild }>