Skip to content

Commit 48788a5

Browse files
committed
Prevent user-select for a more reliable behavior in Chrome
This works fine in Safari, but Chrome sometimes opt to make selection instead of click. This does not work at all in Firefox because of https://bugzilla.mozilla.org/show_bug.cgi?id=559506
1 parent 55cc688 commit 48788a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>check-all demo</title>
66
</head>
77
<body>
8-
<div data-check-all-container>
8+
<div data-check-all-container style="user-select: none; -webkit-user-select: none;">
99
Count: <span data-check-all-count>0</span>
1010
<label><input type="checkbox" data-check-all> Check All</label>
1111
<label><input type="checkbox" data-check-all-item> github/fetch</label>

0 commit comments

Comments
 (0)