Fix stray tabIndex on AutoHideScrollbar component in FF

This commit is contained in:
Michael Telatynski 2021-08-06 12:28:06 +01:00
parent 7c1d9b4eda
commit d285a45da5
2 changed files with 3 additions and 4 deletions

View file

@ -61,7 +61,9 @@ export default class AutoHideScrollbar extends React.Component<IProps> {
style={style}
className={["mx_AutoHideScrollbar", className].join(" ")}
onWheel={onWheel}
tabIndex={tabIndex}
// Firefox sometimes makes this element focusable due to
// overflow:scroll;, so force it out of tab order by default.
tabIndex={tabIndex ?? -1}
>
{ children }
</div>);