@fkui/vue-labs 6.25.0 → 6.26.0

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.
@@ -3786,14 +3786,9 @@ function useTabstop(tableRef, metaRows) {
3786
3786
  }
3787
3787
  logic.assertRef(tableRef);
3788
3788
  const target = getCellTarget(tableRef.value, 1, 0);
3789
- if (metaRows.value.length === 0) {
3790
- target.tabIndex = 0;
3791
- target.focus();
3792
- } else {
3793
- activateCell(target, {
3794
- focus: renderOptions.value.focus
3795
- });
3796
- }
3789
+ activateCell(target, {
3790
+ focus: renderOptions.value.focus
3791
+ });
3797
3792
  renderOptions.value.fallbackToFirstCell = false;
3798
3793
  });
3799
3794
  async function withTabstopBehaviour(behaviour, action) {
@@ -3874,8 +3869,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3874
3869
  return getBodyRowCount(keyedRows.value, __props.expandableAttribute) + 1;
3875
3870
  });
3876
3871
  const columnCount = vue.computed(() => {
3877
- const selectableCol = __props.selectable ? 1 : 0;
3878
- return columns.value.length + selectableCol;
3872
+ const expandCol = isTreegrid.value ? 1 : 0;
3873
+ const selectCol = __props.selectable ? 1 : 0;
3874
+ const count = columns.value.length + expandCol + selectCol;
3875
+ return Math.max(1, count);
3879
3876
  });
3880
3877
  const multiSelectColumn = {
3881
3878
  type: "checkbox",