Skip to content

Commit 1b9a3ff

Browse files
committed
docs(picker): popover should not show when open
Per design feedback, the popover should not be showing when the picker is in the loading state. This updates the Storybook template.
1 parent 27e5907 commit 1b9a3ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/picker/stories/template.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export const Template = ({
116116
isOpen = false,
117117
isInvalid = false,
118118
isDisabled = false,
119+
isLoading = false,
119120
withSwitch = false,
120121
fieldLabelStyle = {},
121122
fieldLabelId = "default-picker",
@@ -135,14 +136,15 @@ export const Template = ({
135136
isOpen,
136137
isInvalid,
137138
isDisabled,
139+
isLoading,
138140
content,
139141
labelPosition,
140142
ariaLabeledBy: fieldLabelId,
141143
...args
142144
});
143145

144146
const popoverMarkup = content.length !== 0 ? Popover({
145-
isOpen: isOpen && !isDisabled,
147+
isOpen: isOpen && !isDisabled && !isLoading,
146148
withTip: false,
147149
position: "bottom",
148150
isQuiet,

0 commit comments

Comments
 (0)