Skip to content

Commit

Permalink
fix(accessibility): Fix bug with tab reverting to "summary" on map ma…
Browse files Browse the repository at this point in the history
…rker drag
  • Loading branch information
David Emory committed May 11, 2018
1 parent d805cc2 commit ce3d2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager/components/version/FeedVersionReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default class FeedVersionReport extends Component {

componentWillReceiveProps (nextProps) {
// Reset tab to summary when version changes
if (this.props.version !== nextProps.version) {
const { version } = this.props
if (version && nextProps.version && version.id !== nextProps.version.id) {
this.setState({ tab: 'feed' })
}
}
Expand Down

0 comments on commit ce3d2ac

Please # to comment.