diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-26 15:10:41 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-26 15:10:41 +0700 |
| commit | cca6d803fc4db729865def23004ab1c4bd279e24 (patch) | |
| tree | 9782f7f1e4a46b46f027529d27758fa6e2221451 | |
| parent | 1a247903bf7bb87e0a43b4e5e338ea67ec90e6de (diff) | |
<miqdad> error checkboxstate
| -rw-r--r-- | src-migrate/utils/checkBoxState.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src-migrate/utils/checkBoxState.js b/src-migrate/utils/checkBoxState.js index 2b527f36..8f7236c3 100644 --- a/src-migrate/utils/checkBoxState.js +++ b/src-migrate/utils/checkBoxState.js @@ -53,15 +53,15 @@ const checkboxUpdateState = { // Get IDs of all checkboxes currently updating (for debugging) // getUpdatingCheckboxIds: () => [...updatingCheckboxIds], - // // Add a listener function to be called when update state changes - // addListener: (callback) => { - // if (typeof callback === 'function') { - // listeners.push(callback); - - // // Immediately call with current state - // callback(updateCount > 0); - // } - // }, + // Add a listener function to be called when update state changes + addListener: (callback) => { + if (typeof callback === 'function') { + listeners.push(callback); + + // Immediately call with current state + callback(updateCount > 0); + } + }, // Remove a listener removeListener: (callback) => { |
