Skip to content

Commit

Permalink
BUG Remove reference to ReactTestUtils in distribution file
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Jul 13, 2019
1 parent 78156d2 commit b318caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/containers/Gallery/Gallery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global window */
import $ from 'jquery';
import i18n from 'i18n';
import React, { ReactTestUtils, Component } from 'react';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
Expand Down Expand Up @@ -335,7 +335,7 @@ class Gallery extends Component {
// remove existing event listener so it doesn't trigger multiple times per change
$select.off('change');
// Chosen stops the change event from reaching React so we have to simulate a click.
$select.on('change', () => ReactTestUtils.Simulate.click($select.find(':selected')[0]));
$select.on('change', () => $select.find(':selected')[0].click());
}
}

Expand Down

0 comments on commit b318caa

Please sign in to comment.