Skip to content

Commit

Permalink
touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Dec 13, 2023
1 parent 86943cf commit 522199f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/column-list/column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default function Column({ column, index }: { column: ColumnType; index: n
setTimeout(() => {
// listRef.current?.scrollTo({ top: listRef.current.scrollHeight, behavior: "smooth" });
const newTaskElement = listRef.current?.children[listRef.current.children.length - 1] as HTMLLabelElement;
newTaskElement.scrollIntoView({ behavior: "smooth", block: "center", inline: "center" });
newTaskElement.click();
newTaskElement?.scrollIntoView({ behavior: "smooth", block: "center", inline: "center" });
newTaskElement?.click();
setTimeout(() => {
newTaskElement.getElementsByTagName("textarea")[0].focus();
newTaskElement.getElementsByTagName("textarea")[0].click();
newTaskElement?.getElementsByTagName("textarea")[0].focus();
newTaskElement?.getElementsByTagName("textarea")[0].click();

Check warning on line 30 in src/components/column-list/column.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/column-list/column.tsx#L29-L30

Added lines #L29 - L30 were not covered by tests
}, 50);
}, 250);
};
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default defineConfig({
coverage: {
provider: "v8",
reporter: ["text", "json", "html", "clover"],
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/**/main.tsx", "src/**/*.d.ts"],
},
},
});

0 comments on commit 522199f

Please sign in to comment.