From fbb8f9bb194a5616bfc79b78c63d0ac6c3cfee08 Mon Sep 17 00:00:00 2001 From: Anders Date: Fri, 13 Jan 2023 09:09:55 +0100 Subject: [PATCH] feat(Dropdown): remove deprecated selected_item property (#1870) --- 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 48341bd0cbf..4b710aa0c53 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, }) }