Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit a253474

Browse files
WebVeteranarschmitz
authored andcommitted
Demos: Allow text selection in INPUTs and TEXTAREAs.
Closes gh-6819 (cherry picked from commit 44f503d)
1 parent 56dddc6 commit a253474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/panel-swipe-open/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
</script>
3131
<style>
3232
/* Swipe works with mouse as well but often causes text selection. */
33-
#demo-page * {
33+
/* We'll deny text selecton on everything but INPUTs and TEXTAREAs. */
34+
#demo-page :not(INPUT):not(TEXTAREA) {
3435
-webkit-user-select: none;
3536
-moz-user-select: none;
3637
-ms-user-select: none;

0 commit comments

Comments
 (0)