Skip to content

Commit

Permalink
Select: Clean up some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Apr 8, 2021
1 parent 449c300 commit bed9227
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Input/DownshiftSelect/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export const ControlledInputValue: Story<Props> = () => {
<TextField
value={inputValue}
onChange={(e: any) => setInputValue(e.target.value)}
placeholder="foo"
/>
</Box>
<Box mb={8}>
Expand Down
3 changes: 2 additions & 1 deletion src/Input/DownshiftSelect/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ export const Select: React.FC<Props> & { Components: Components } = ({
{...getInputProps({
disabled: disabled,
readOnly: disableTyping,
placeholder: placeholder,
onFocus,
onBlur,
...props,
})}
placeholder={placeholder}
aria-invalid={invalid}
{...(helperText && { 'aria-describedby': helperId })}
{...(selectedItem && { title: selectedItem.label })}
Expand All @@ -321,6 +321,7 @@ export const Select: React.FC<Props> & { Components: Components } = ({
})}
aria-label="toggle menu"
data-testid="toggle-button"
ref={undefined}
>
{isOpen ? <ArrowUpIcon /> : <ArrowDownIcon />}
</ToggleButton>
Expand Down

0 comments on commit bed9227

Please sign in to comment.