From d684248492ba8d294ddd6218bf568c9457069767 Mon Sep 17 00:00:00 2001 From: IanM <16573496+imorland@users.noreply.github.com> Date: Thu, 23 Mar 2023 08:02:59 +0000 Subject: [PATCH] fix: empty string displayed as SelectDropdown title (#3773) * fix: empty string displayed as SelectDropdown title * chore: remove import * chore: ts-ignore * Update framework/core/js/src/common/components/SelectDropdown.tsx Co-authored-by: David Wheatley --------- Co-authored-by: David Wheatley --- framework/core/js/src/common/components/SelectDropdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/src/common/components/SelectDropdown.tsx b/framework/core/js/src/common/components/SelectDropdown.tsx index 65ea46df5..deab0fa98 100644 --- a/framework/core/js/src/common/components/SelectDropdown.tsx +++ b/framework/core/js/src/common/components/SelectDropdown.tsx @@ -1,6 +1,5 @@ import Dropdown, { IDropdownAttrs } from './Dropdown'; import icon from '../helpers/icon'; -import extractText from '../utils/extractText'; import classList from '../utils/classList'; import type Component from '../Component'; import type Mithril from 'mithril'; @@ -50,7 +49,8 @@ export default class SelectDropdown{label}, this.attrs.caretIcon ? icon(this.attrs.caretIcon, { className: 'Button-caret' }) : null]; }