Bug 1562894 - Patched out focus behaviour on ContextMenu (#5157)
This commit is contained in:
Родитель
6f9df71900
Коммит
c7aedf44d2
|
@ -72,7 +72,6 @@ export class ContextMenuItem extends React.PureComponent {
|
|||
super(props);
|
||||
this.onClick = this.onClick.bind(this);
|
||||
this.onKeyDown = this.onKeyDown.bind(this);
|
||||
this.focusFirst = this.focusFirst.bind(this);
|
||||
}
|
||||
|
||||
onClick() {
|
||||
|
@ -80,12 +79,6 @@ export class ContextMenuItem extends React.PureComponent {
|
|||
this.props.option.onClick();
|
||||
}
|
||||
|
||||
focusFirst(button) {
|
||||
if (button) {
|
||||
button.focus();
|
||||
}
|
||||
}
|
||||
|
||||
// This selects the correct node based on the key pressed
|
||||
focusSibling(target, key) {
|
||||
const parent = target.parentNode;
|
||||
|
@ -141,7 +134,6 @@ export class ContextMenuItem extends React.PureComponent {
|
|||
tabIndex="0"
|
||||
onClick={this.onClick}
|
||||
onKeyDown={this.onKeyDown}
|
||||
ref={option.first ? this.focusFirst : null}
|
||||
>
|
||||
{option.icon && (
|
||||
<span className={`icon icon-spacer icon-${option.icon}`} />
|
||||
|
|
Загрузка…
Ссылка в новой задаче