diff --git a/src/components/Table/utils/ColumnState.ts b/src/components/Table/utils/ColumnState.ts index 90e8d241f..99f7ec8bc 100644 --- a/src/components/Table/utils/ColumnState.ts +++ b/src/components/Table/utils/ColumnState.ts @@ -27,6 +27,8 @@ export class ColumnState { this.visible = storage.wasVisible(column.id) ?? (column.canHide ? column.initVisible ?? false : true); if (this.visible && (storage.wasExpanded(column.id) ?? column.initExpanded)) { this.expanded = true; + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises this.doExpand(); } makeAutoObservable(this, { column: observable.ref }, { name: `ColumnState@${column.id}` }); @@ -38,6 +40,8 @@ export class ColumnState { // If an expandable header is becoming visible for the 1st time, expand it if (!wasVisible && visible && this.column.initExpanded && this.children === undefined) { this.expanded = true; + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises this.doExpand(); } } @@ -52,6 +56,8 @@ export class ColumnState { // The first time we expand, fetch our children. Note that ExpandableHeader // technically pre-loads our children, so it can show a spinner while loading, // and only after loading is complete, tell our column to expand. + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises if (!wasExpanded) this.doExpand(); } diff --git a/src/components/Table/utils/ColumnStates.ts b/src/components/Table/utils/ColumnStates.ts index c2423ecab..7051ddea3 100644 --- a/src/components/Table/utils/ColumnStates.ts +++ b/src/components/Table/utils/ColumnStates.ts @@ -44,6 +44,8 @@ export class ColumnStates { } else { existing.column = column; // Any time a column is re-added (i.e. props.columns changed), re-expand it + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises if (existing.isExpanded) existing.doExpand(true); return existing; } diff --git a/src/inputs/TreeSelectField/TreeSelectField.tsx b/src/inputs/TreeSelectField/TreeSelectField.tsx index 03df3e6ed..d2bd58058 100644 --- a/src/inputs/TreeSelectField/TreeSelectField.tsx +++ b/src/inputs/TreeSelectField/TreeSelectField.tsx @@ -297,6 +297,8 @@ function TreeSelectFieldBase(props: TreeSelectFieldProps(props: ComboBoxBaseProps) const firstOpen = useRef(true); function onOpenChange(isOpen: boolean) { if (firstOpen.current && isOpen) { + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises maybeInitLoad(); firstOpen.current = false; } diff --git a/src/utils/rtl.test.tsx b/src/utils/rtl.test.tsx index a44acdeb2..f77057c55 100644 --- a/src/utils/rtl.test.tsx +++ b/src/utils/rtl.test.tsx @@ -109,6 +109,8 @@ describe("rtl", () => { label="Number" value={undefined as any} onSelect={(v, o) => { + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises asyncSelect(v, o); }} options={[ @@ -219,6 +221,8 @@ describe("rtl", () => { label="Number" values={undefined as any} onSelect={(v, o) => { + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises asyncSelect(v, o); }} options={[ @@ -317,6 +321,8 @@ describe("rtl", () => { label="Number" values={[] as string[]} onSelect={({ all }) => { + // TODO: verify this eslint ignore + // eslint-disable-next-line @typescript-eslint/no-floating-promises asyncSelect(all); }} options={