Skip to content

Commit

Permalink
feat: auto focus when display custom input
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming committed Nov 1, 2024
1 parent e321874 commit b0e147a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export const showTableCreator = async (options: TableCreatorOptions = {}) => {

return new Promise<{ row: number; col: number }>((resolve, reject) => {
const { close } = createDialog({ child: box, beforeClose: reject });
rowInput.focus();

confirmBtn.addEventListener('click', async () => {
const row = Number(rowInput.value);
Expand Down

0 comments on commit b0e147a

Please sign in to comment.