Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix input.stories.jsx autoFocus #2232

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/semi-ui/input/_story/input.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ _Input.parameters = {

export const InputAutofocus = () => (
<div className="input">
<Input placeholder="ies input" autofocus />
<Input placeholder="ies input" autoFocus />
</div>
);

InputAutofocus.story = {
name: 'Input autofocus',
name: 'Input autoFocus',
};

export const InputPlaceholder = () => (
Expand Down Expand Up @@ -117,7 +117,7 @@ export const InputPrefixSuffixDemo = () => (
<Input prefix="search" showClear defaultValue="Semi Design" />
<Input prefix={<span>pre</span>} showClear defaultValue="Semi Design" />
<Input prefix={<span>pre</span>} showClear defaultValue="Semi Design" />
<Input suffix={<IconSearch />} autofocus showClear defaultValue="Semi Design"></Input>
<Input suffix={<IconSearch />} autoFocus showClear defaultValue="Semi Design"></Input>
<Input suffix="Semi Design" showClear defaultValue="Semi Design"></Input>
<Input
suffix={
Expand Down Expand Up @@ -526,7 +526,7 @@ export const FixAddonBeforeShowClear = () => (
style={{
width: 300,
}}
autofocus
autoFocus
defaultValue="Semi Design"
addonBefore="http://"
showClear
Expand Down
Loading