Fix dynamic updating of “Bootstrap timeline accounts” admin setting (#15325)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		@@ -57,8 +57,10 @@ const onEnableBootstrapTimelineAccountsChange = (target) => {
 | 
				
			|||||||
    bootstrapTimelineAccountsField.disabled = !target.checked;
 | 
					    bootstrapTimelineAccountsField.disabled = !target.checked;
 | 
				
			||||||
    if (target.checked) {
 | 
					    if (target.checked) {
 | 
				
			||||||
      bootstrapTimelineAccountsField.parentElement.classList.remove('disabled');
 | 
					      bootstrapTimelineAccountsField.parentElement.classList.remove('disabled');
 | 
				
			||||||
 | 
					      bootstrapTimelineAccountsField.parentElement.parentElement.classList.remove('disabled');
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      bootstrapTimelineAccountsField.parentElement.classList.add('disabled');
 | 
					      bootstrapTimelineAccountsField.parentElement.classList.add('disabled');
 | 
				
			||||||
 | 
					      bootstrapTimelineAccountsField.parentElement.parentElement.classList.add('disabled');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user