@bobfrankston/rmfmail 1.2.152 → 1.2.153

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3382,13 +3382,14 @@ function rowKey(accountId, uid) {
3382
3382
  }
3383
3383
  function focusRow(row, opts = {}) {
3384
3384
  const body = row.el.parentElement;
3385
- if (!body?.classList.contains("multi-select-on")) {
3385
+ const multiOn = !!body?.classList.contains("multi-select-on");
3386
+ if (!multiOn) {
3386
3387
  body?.querySelectorAll(".ml-row.selected").forEach((r) => {
3387
3388
  if (r !== row.el)
3388
3389
  r.classList.remove("selected");
3389
3390
  });
3390
3391
  }
3391
- if (focusedRow && focusedRow !== row)
3392
+ if (focusedRow && focusedRow !== row && !multiOn)
3392
3393
  focusedRow.setSelected(false);
3393
3394
  row.setSelected(true);
3394
3395
  focusedRow = row;