Skip to content

Commit

Permalink
fix(list-picker): fix listpicker autoWidth (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
berber1016 authored Dec 24, 2021
1 parent 47e4976 commit 31d1351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/list-picker/demos/List-picker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,12 @@ export const DimensionPicker = () => {
value={value}
style={style}
placeholder="请选择属性"
autoWidth
onChange={(e: string) => {
setValue(e);
action('onChange');
}}
getContainer={() => document.body}
overlayStyle={{ width: 320 }}
>
<SearchBar
style={{ width: '100%' }}
Expand Down
1 change: 1 addition & 0 deletions src/list-picker/listPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const ListPicker: React.FC<ListPickerProps> = (props) => {
className={className}
maxWidth={maxWidth}
disabled={disabled}
ref={triggerRef as React.RefObject<HTMLInputElement>}
placeholder={placeholder}
suffix={triggerSuffix}
prefix={triggerPrefix}
Expand Down

1 comment on commit 31d1351

@vercel
Copy link

@vercel vercel bot commented on 31d1351 Dec 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.