File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff 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' , ( ) => {
Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ v1.0.4:
1111 - builder_table_create_renick_survey_choices.php
1212v1.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'
You can’t perform that action at this time.
0 commit comments