Skip to content

Commit

Permalink
Fixes #12114, refs #11064. Only set -moz-user-input:none; input for t…
Browse files Browse the repository at this point in the history
…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
Douglas Hays committed Dec 22, 2010
1 parent 460c18e commit cb74e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/form/test_validate.html
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ <h1 class="testTitle">Dijit Validation Widgets</h1>
</div>
<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"/>
Expand Down
2 changes: 1 addition & 1 deletion themes/dijit.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit cb74e2d

Please sign in to comment.