From 3c2b45e89acb478859db41fe4a09b8493067d279 Mon Sep 17 00:00:00 2001 From: Joan Perals Tresserra Date: Fri, 22 Sep 2023 09:28:05 +0200 Subject: [PATCH] Remove undesired useEffect --- pages/dropdown/width.page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/dropdown/width.page.tsx b/pages/dropdown/width.page.tsx index caf92f1026..8eb518934b 100644 --- a/pages/dropdown/width.page.tsx +++ b/pages/dropdown/width.page.tsx @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -import React, { useContext, useEffect, useState } from 'react'; +import React, { useContext, useState } from 'react'; import Select, { SelectProps } from '~components/select'; import Multiselect, { MultiselectProps } from '~components/multiselect'; import Autosuggest from '~components/autosuggest'; @@ -214,7 +214,6 @@ export default function () { } }; const onClose = () => setLoading(asyncLoading); - useEffect(onOpen, [asyncLoading]); return (

Dropdown width