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 {
7171 const { breakpoint } = props ;
7272 if ( matchMedia ) {
7373 mql = window . matchMedia ( typeof breakpoint === 'string' ? breakpoint : `screen and (min-width: ${ breakpoint } px)` ) ;
74- mql . addEventListener ( 'change' , this . handleMatch ) ;
74+ mql . addListener ( this . handleMatch ) ;
7575 narrow = ! mql . matches ;
7676 }
7777
Original file line number Diff line number Diff line change 1+ /* eslint-env browser, mocha */
2+
13import expect from 'expect' ;
24import React from 'react' ;
35import { render , unmountComponentAtNode } from 'react-dom' ;
46import matchMediaMock from 'match-media-mock' ;
57
6- import Component from '../src ' ;
8+ import Component from './index ' ;
79
810const matchMedia = matchMediaMock . create ( ) ;
911window . matchMedia = matchMedia ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments