Skip to content

Commit

Permalink
Added doFocus to the TabList on MovieWishlist.js so that it always au…
Browse files Browse the repository at this point in the history
…tofocuses on componentDidMount as well
  • Loading branch information
Erin Doyle committed Sep 2, 2018
1 parent 5ed4cd9 commit a78d9cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/browse/MovieBrowser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';

import movies from '../movies';
Expand Down Expand Up @@ -32,7 +32,7 @@ const MovieBrowser = ({
const moviesInGenre = movies[selectedGenre];

return (
<div>
<Fragment>
<Header
title="Browse Movies"
buttonOptions={{
Expand All @@ -58,7 +58,7 @@ const MovieBrowser = ({
/>
</div>
</main>
</div>
</Fragment>
);
};

Expand Down
6 changes: 3 additions & 3 deletions src/wishlist/MovieWishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MovieWishlist extends Component {
const movieInEditing = movieIdInEdit ? wishlist[movieIdInEdit] : {};

return (
<div>
<Fragment>
<Header
title="Movie Wishlist"
buttonOptions={{
Expand All @@ -97,7 +97,7 @@ class MovieWishlist extends Component {
// Show WishList
? <Fragment>

<TabList ariaLabel="Select a WishList by Status" tabList={tabList} />
<TabList ariaLabel="Select a WishList by Status" tabList={tabList} doFocus />

<div
id={`${selectedStatus}-panel`}
Expand Down Expand Up @@ -129,7 +129,7 @@ class MovieWishlist extends Component {
</div>
}
</main>
</div>
</Fragment>
);
}
}
Expand Down

0 comments on commit a78d9cf

Please sign in to comment.