diff --git a/samples/sampler/stories/qa/Dropdown.js b/samples/sampler/stories/qa/Dropdown.js index 72edc78ba9..63a3bdc35e 100644 --- a/samples/sampler/stories/qa/Dropdown.js +++ b/samples/sampler/stories/qa/Dropdown.js @@ -335,15 +335,15 @@ InScroller.parameters = { InScroller.storyName = 'in Scroller (PLAT-137855)'; export const WithChaningPositionWhileDropdownOpen = () => { - const [isRemoved, remove] = useState(false); + const [isRemoved, remove] = useState(false); - useEffect(() => { - setTimeout(() => { - remove(true); - }, 2000); - }, []); + useEffect(() => { + setTimeout(() => { + remove(true); + }, 2000); + }, []); - return ( + return (
{!isRemoved && (
@@ -354,7 +354,7 @@ export const WithChaningPositionWhileDropdownOpen = () => { {['a', 'b', 'c']}
- ); + ); }; WithChaningPositionWhileDropdownOpen.storyName = 'with changing position while dropdown open';