Skip to content

Commit c28a45d

Browse files
committed
Fix for the https://surveyjs.answerdesk.io/ticket/details/T1091 - datepicker doesn't respect read only state
1 parent 86c570e commit c28a45d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jquery-ui-datepicker.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ function init(Survey, $) {
5959
}
6060
});
6161

62+
question.readOnlyChangedCallback = function() {
63+
$el.datepicker("option", "disabled", question.isReadOnly);
64+
};
65+
question.readOnlyChangedCallback();
66+
6267
question.valueChangedCallback = function() {
6368
if (question.value) {
6469
pickerWidget.datepicker("setDate", question.value);

0 commit comments

Comments
 (0)