fix: Various aria and React warnings

This commit is contained in:
Tom Moor
2021-10-19 22:12:20 -07:00
parent d443abfc57
commit 51971d2c9a
10 changed files with 30 additions and 37 deletions

View File

@ -128,12 +128,7 @@ const InputSelect = (props: Props) => {
wrappedLabel
))}
<Select
{...select}
disabled={disabled}
aria-label={ariaLabel}
ref={buttonRef}
>
<Select {...select} disabled={disabled} ref={buttonRef}>
{(props) => (
<StyledButton
neutral
@ -149,7 +144,7 @@ const InputSelect = (props: Props) => {
</StyledButton>
)}
</Select>
<SelectPopover {...select} {...popOver}>
<SelectPopover {...select} {...popOver} aria-label={ariaLabel}>
{(props) => {
const topAnchor = props.style.top === "0";
const rightAnchor = props.placement === "bottom-end";