From 3ac10c88a21d572001b8bfaea9b02f4b6deb4f2f Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 24 Apr 2024 12:29:15 -0400 Subject: [PATCH 1/2] fix(Multiselect): remove focus when MultiSelect is open --- .../FluidMultiSelect/FluidMultiSelect.stories.js | 15 +++++++++++++++ .../scss/components/multiselect/_multiselect.scss | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js b/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js index f75cc72f5fa4..7dc9f2dba8e8 100644 --- a/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js +++ b/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js @@ -82,6 +82,21 @@ export const Default = () => ( ); +export const Filterable = () => ( +
+ {}} + initialSelectedItem={items[2]} + id="default" + titleText="Label" + label="Choose an option" + items={items} + itemToString={(item) => (item ? item.text : '')} + /> +
+); + export const Condensed = () => (
Date: Thu, 25 Apr 2024 11:05:05 -0400 Subject: [PATCH 2/2] fix(Multiselect): add focus when item is selected, add with layer story --- .../FluidMultiSelect.stories.js | 19 +++++++++++++++++++ .../components/multiselect/_multiselect.scss | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js b/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js index 7dc9f2dba8e8..6211af47fd60 100644 --- a/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js +++ b/packages/react/src/components/FluidMultiSelect/FluidMultiSelect.stories.js @@ -6,6 +6,8 @@ */ import React from 'react'; + +import { WithLayer } from '../../../.storybook/templates/WithLayer'; import { FluidMultiSelect, FluidMultiSelectSkeleton, @@ -97,6 +99,23 @@ export const Filterable = () => (
); +export const _FilterableWithLayer = () => ( + + {(layer) => ( +
+ (item ? item.text : '')} + selectionFeedback="top-after-reopen" + /> +
+ )} +
+); + export const Condensed = () => (