Browse files

Fixes #12114, refs #11064. Only set -moz-user-input:none; input for t…

…he presentation INPUT nodes, not the real INPUT for readonly TextBox widgets to allow for text selection and hint (title) popup text.
  • Loading branch information...
1 parent 460c18e commit cb74e2daece9765540656a35f43fcf175db060dd Douglas Hays committed Dec 22, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/form/test_validate.html
  2. +1 −1 themes/dijit.css
@@ -473,7 +473,7 @@ <h1 class="testTitle">Dijit Validation Widgets</h1>
<div class="testExample">
<input id="q24" data-dojo-type="dijit.form.TextBox"
- data-dojo-props='name: "readOnly", "class": "medium", readOnly: true, value: "cannot type here" '/>
+ data-dojo-props='name: "readOnly", "class": "medium", readOnly: true, value: "cannot type here", title: "hint text" '/>
<input type="button" id="removereadonly" onclick="dijit.byId('q24').set('readOnly',false);" value="Remove readOnly" tabIndex="-1"/>
<input type="button" onclick="dijit.byId('q24').set('readOnly',true);" value="Set readOnly" tabIndex="-1"/>
<input type="button" id="removedisabled" onclick="dijit.byId('q24').set('disabled',false);" value="Remove disabled" tabIndex="-1"/>
@@ -365,7 +365,7 @@ DIV.dijitArrowButton {
.dj_webkit TEXTAREA.dijitTextAreaDisabled {
color: #333; /* because WebKit lightens disabled input/textarea no matter what color you specify */
-.dj_gecko .dijitTextBoxReadOnly INPUT,
+.dj_gecko .dijitTextBoxReadOnly INPUT.dijitInputField, /* disable arrow and validation presentation INPUTs but allow real INPUT for text selection */
.dj_gecko .dijitTextBoxDisabled INPUT {
-moz-user-input: none; /* prevent focus of disabled textbox buttons */

0 comments on commit cb74e2d

Please sign in to comment.