Skip to content

Commit

Permalink
fix(Chip): check chipCheckmark.props.getBoundingClientRect
Browse files Browse the repository at this point in the history
  • Loading branch information
cpboyd committed May 10, 2019
1 parent 5fa9d96 commit b07767c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chips/Chip.tsx
Expand Up @@ -152,7 +152,7 @@ export class Chip extends React.Component<ChipProps, ChipState> {
},
getCheckmarkBoundingClientRect: () => {
const {chipCheckmark} = this.props;
if (!chipCheckmark) {
if (!(chipCheckmark && chipCheckmark.props && chipCheckmark.props.getBoundingClientRect)) {
// new DOMRect is not IE11 compatible
const defaultDOMRect = {
bottom: 0,
Expand Down

0 comments on commit b07767c

Please sign in to comment.