Skip to content

Commit 2d4743d

Browse files
authored
Fixed double clicking issue on touch devices (#3750)
1 parent 5d5318f commit 2d4743d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/views/timetable/TimetableModulesTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const TimetableModulesTableComponent: React.FC<Props> = (props) => {
5555
return (
5656
<div className={styles.moduleActionButtons}>
5757
<div className="btn-group">
58-
<Tooltip content={removeBtnLabel} touch="hold">
58+
<Tooltip content={removeBtnLabel} touch={['hold', 50]}>
5959
<button
6060
type="button"
6161
className={classnames('btn btn-outline-secondary btn-svg', styles.moduleAction)}
@@ -65,7 +65,7 @@ export const TimetableModulesTableComponent: React.FC<Props> = (props) => {
6565
<Trash className={styles.actionIcon} />
6666
</button>
6767
</Tooltip>
68-
<Tooltip content={hideBtnLabel} touch="hold">
68+
<Tooltip content={hideBtnLabel} touch={['hold', 50]}>
6969
<button
7070
type="button"
7171
className={classnames('btn btn-outline-secondary btn-svg', styles.moduleAction)}

0 commit comments

Comments
 (0)