Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Unfocus first MenuList item on page load #339

Closed
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
danielstclair <[email protected]>
Brandon Clark <[email protected]>
brian pursell <[email protected]>
joshuapawlik <[email protected]>
3 changes: 1 addition & 2 deletions src/components/Menu/MenuList.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';
import { findDOMNode } from 'react-dom';
import styled from 'styled-components';

class MenuListComponent extends React.Component {
componentDidMount() {
findDOMNode(this.menuList.current).firstChild.focus();

AriLFrankel marked this conversation as resolved.
Show resolved Hide resolved
}

menuList = React.createRef();
Expand Down