Added comment
This commit is contained in:
@@ -87,6 +87,7 @@ const createCheckbox = (mediaInfo = {}, state = []) => {
|
|||||||
label.appendChild(span);
|
label.appendChild(span);
|
||||||
container.appendChild(label);
|
container.appendChild(label);
|
||||||
|
|
||||||
|
// Remove dependency on local state. Move to scanning for all checked checkboxes and create the array at that point.
|
||||||
checkbox.addEventListener('change', (e) => {
|
checkbox.addEventListener('change', (e) => {
|
||||||
const mediaInfo = checkbox.dataset.mediaInfo || '(no info)';
|
const mediaInfo = checkbox.dataset.mediaInfo || '(no info)';
|
||||||
if (checkbox.checked) {
|
if (checkbox.checked) {
|
||||||
|
|||||||
Reference in New Issue
Block a user