We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c6634b + 6899ce4 commit 702f227Copy full SHA for 702f227
src/dateinput/dateinput.js
@@ -289,7 +289,12 @@
289
290
//{{{ pick
291
292
- function select(date, conf, e) {
+ function select(date, conf, e) {
293
+ // If it is readonly, then we'll just close the calendar
294
+ if (input.attr('readonly')) {
295
+ self.hide(e);
296
+ return;
297
+ }
298
299
// current value
300
value = date;
@@ -420,7 +425,7 @@
420
425
*/
421
426
show: function(e) {
422
427
423
- if (input.attr("readonly") || input.attr("disabled") || opened) { return; }
428
+ if (input.attr("disabled") || opened) { return; }
424
429
430
// onBeforeShow
431
e = e || $.Event();
0 commit comments