Skip to content

Commit

Permalink
stop using .includes in select to fix IE11 crash [#151622400]
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Berney <jberney@pivotal.io>
  • Loading branch information
reidmit authored and Jonathan Berney committed Oct 9, 2017
1 parent dbef84b commit 0f51153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Scrim from '../mixins/mixins/scrim_mixin';
import Transition from '../mixins/mixins/transition_mixin';
import classnames from 'classnames';

const isBlank = value => [null, undefined].includes(value);
const isBlank = value => value === null || value === undefined;

export class Select extends mixin(React.Component).with(Scrim, Transition) {
constructor(props, context) {
Expand Down

0 comments on commit 0f51153

Please sign in to comment.