Permalink
Browse files

Allow text selection in INPUTs and TEXTAREAs.

Added test case for INPUT and TEXTAREA. The form shows how one can still select text in an input or textarea, but not allow text selections in a page.
  • Loading branch information...
WebVeteran committed Dec 23, 2013
1 parent aad5335 commit 9e0382c11a45734db659bd76bbcc722932e36d10
Showing with 6 additions and 2 deletions.
  1. +6 −2 demos/panel-swipe-open/index.php
@@ -30,7 +30,8 @@
</script>
<style>
/* Swipe works with mouse as well but often causes text selection. */
#demo-page * {
/* We'll deny text selecton on everything but INPUTs and TEXTAREAs. */
#demo-page :not(INPUT):not(TEXTAREA) {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@@ -94,7 +95,10 @@
<dl>
<dt>Swipe <span>verb</span></dt>
<dd><b>1.</b> to strike or move with a sweeping motion</dd>
</dl>
<dd>
<form>Form textual inputs are not effected.<br><input type="text" placeholder="INPUT field"><br><textarea placeholder="TEXTAREA field"></textarea></form>
</dd>
</dl>
<a href="#demo-intro" data-rel="back" class="back-btn ui-btn ui-corner-all ui-shadow ui-mini ui-btn-inline ui-icon-back ui-btn-icon-right">Back to demo intro</a>

0 comments on commit 9e0382c

Please sign in to comment.