Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…epicker doesn't respect read only state
  • Loading branch information
tsv2013 committed Sep 26, 2018
1 parent 86c570e commit c28a45d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jquery-ui-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ function init(Survey, $) {
}
});

question.readOnlyChangedCallback = function() {
$el.datepicker("option", "disabled", question.isReadOnly);
};
question.readOnlyChangedCallback();

question.valueChangedCallback = function() {
if (question.value) {
pickerWidget.datepicker("setDate", question.value);
Expand Down

0 comments on commit c28a45d

Please sign in to comment.