File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class HyperResponsiveTable extends Component {
71
71
const { breakpoint } = props ;
72
72
if ( matchMedia ) {
73
73
mql = window . matchMedia ( typeof breakpoint === 'string' ? breakpoint : `screen and (min-width: ${ breakpoint } px)` ) ;
74
- mql . addEventListener ( 'change' , this . handleMatch ) ;
74
+ mql . addListener ( this . handleMatch ) ;
75
75
narrow = ! mql . matches ;
76
76
}
77
77
Original file line number Diff line number Diff line change
1
+ /* eslint-env browser, mocha */
2
+
1
3
import expect from 'expect' ;
2
4
import React from 'react' ;
3
5
import { render , unmountComponentAtNode } from 'react-dom' ;
4
6
import matchMediaMock from 'match-media-mock' ;
5
7
6
- import Component from '../src ' ;
8
+ import Component from './index ' ;
7
9
8
10
const matchMedia = matchMediaMock . create ( ) ;
9
11
window . matchMedia = matchMedia ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments