From 9d603296c6b181b398a7db9871dac4ff190b85b4 Mon Sep 17 00:00:00 2001 From: -l Date: Mon, 9 Jan 2023 09:03:53 +0100 Subject: [PATCH] feat(Dropdown): remove deprecated selected_item property --- packages/dnb-eufemia/src/components/dropdown/Dropdown.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/dnb-eufemia/src/components/dropdown/Dropdown.js b/packages/dnb-eufemia/src/components/dropdown/Dropdown.js index ef13acbe907..f87c9ae92e4 100644 --- a/packages/dnb-eufemia/src/components/dropdown/Dropdown.js +++ b/packages/dnb-eufemia/src/components/dropdown/Dropdown.js @@ -8,7 +8,6 @@ import PropTypes from 'prop-types' import classnames from 'classnames' import keycode from 'keycode' import { - warn, isTrue, makeUniqueId, extendPropsWithContextInClassComponent, @@ -270,12 +269,6 @@ class DropdownInstance extends React.PureComponent { this._ref = React.createRef() this._refShell = React.createRef() this._refButton = React.createRef() - - // deprecated, use value instead - const dep = 'selected_item' - if (typeof props[dep] !== 'undefined') { - warn(`Dropdown: Please use "value" instead of "${dep}".`) - } } componentDidMount() { @@ -388,7 +381,6 @@ class DropdownInstance extends React.PureComponent { const attributes = this.attributes || {} dispatchCustomElementEvent(this, 'on_select', { ...args, - // selected_item: args.value, // deprecated attributes, }) }