Skip to content

Commit dfc4b08

Browse files
fix: submit button not blocked anymore
1 parent e64958f commit dfc4b08

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

components/survey/default.htm

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ <h3 class="card-title">{{ model.title }}</h3>
6565
return isOptionSelected();
6666
};
6767

68-
for (const option of options()) {
69-
const input = option.querySelector('input');
70-
const description = option.querySelector('.description');
71-
description.addEventListener('click', () => {
72-
input.click();
73-
submitButton.disabled = !canClickSubmit();
74-
});
75-
}
68+
setTimeout(() => {
69+
for (const option of options()) {
70+
const input = option.querySelector('input');
71+
const description = option.querySelector('.description');
72+
description.addEventListener('click', () => {
73+
input.click();
74+
submitButton.disabled = !canClickSubmit();
75+
});
76+
input.addEventListener('change', () => {
77+
submitButton.disabled = !canClickSubmit();
78+
});
79+
}
80+
}, 400);
7681

7782
if (privacyNotice) {
7883
privacyNotice.addEventListener('change', () => {

updates/version.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ v1.0.4:
1111
- builder_table_create_renick_survey_choices.php
1212
v1.0.5:
1313
- 'adjust form widget: option have more space, util function to get options with key-value for October forms, higher option repeater limit'
14+
v1.0.6:
15+
- 'Fix: Submit button is not blocked anymore, when not clicked the description'

0 commit comments

Comments
 (0)