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 (
@@ -78,8 +83,8 @@ class SpeedDials extends React.Component { onBlur={this.handleClose} onClick={this.handleClick} onClose={this.handleClose} - onFocus={this.handleOpen} - onMouseEnter={this.handleOpen} + onFocus={isTouch ? undefined : this.handleOpen} + onMouseEnter={isTouch ? undefined : this.handleOpen} onMouseLeave={this.handleClose} open={open} >