📅  最后修改于: 2022-03-11 14:56:45.279000             🧑  作者: Mango
Buttons are interactive controls and thus focusable. If the button role is added to an element
that is not focusable by itself (such as , or ) then, the tabindex attribute has
to be used to make the button focusable.
handleSelect(filter)}
role="button"
tabIndex={0}
>
{filter.name}
The HTML attribute tabindex corresponds to the attribute tabIndex in React.