Skip to content

Commit ce3d2ac

Browse files
author
David Emory
committed
fix(accessibility): Fix bug with tab reverting to "summary" on map marker drag
1 parent d805cc2 commit ce3d2ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/manager/components/version/FeedVersionReport.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export default class FeedVersionReport extends Component {
3535

3636
componentWillReceiveProps (nextProps) {
3737
// Reset tab to summary when version changes
38-
if (this.props.version !== nextProps.version) {
38+
const { version } = this.props
39+
if (version && nextProps.version && version.id !== nextProps.version.id) {
3940
this.setState({ tab: 'feed' })
4041
}
4142
}

0 commit comments

Comments
 (0)