diff --git a/docs/src/pages/lab/speed-dial/SpeedDials.js b/docs/src/pages/lab/speed-dial/SpeedDials.js index 84154255b633d4..031fc0bf5aa473 100644 --- a/docs/src/pages/lab/speed-dial/SpeedDials.js +++ b/docs/src/pages/lab/speed-dial/SpeedDials.js @@ -67,6 +67,11 @@ class SpeedDials extends React.Component { const { classes } = this.props; const { hidden, open } = this.state; + let isTouch; + if (typeof document !== 'undefined') { + isTouch = 'ontouchstart' in document.documentElement; + } + return (