diff --git a/packages/co-design-core/src/components/Input/stories/Input.stories.tsx b/packages/co-design-core/src/components/Input/stories/Input.stories.tsx index 0bcd159..5e6dc60 100644 --- a/packages/co-design-core/src/components/Input/stories/Input.stories.tsx +++ b/packages/co-design-core/src/components/Input/stories/Input.stories.tsx @@ -1,6 +1,7 @@ -import React from 'react'; +import React, { useState } from 'react'; import { Tooltip } from '../../Tooltip'; import { Input } from '../Input'; +import { Modal } from '../../Modal'; export default { title: '@co-design/core/Input', @@ -116,12 +117,25 @@ export const WithLabel = { }, }; +// Storybook Context 변경으로 인한 리렌더링으로 focus 풀림 export const AutoFocus = { render: (props) => { + const [opened, setOpened] = useState(false); return ( -