Skip to content

Commit

Permalink
focus on the last element after create a new lg Template (#2778)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
liweitian and cwhitten authored Apr 28, 2020
1 parent 698561d commit 843d639
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const TableView: React.FC<TableViewProps> = props => {
},
};
createLgTemplate(payload);
setFocusedIndex(templates.length);
}, [templates, file, projectId]);

const onRemoveTemplate = useCallback(
Expand Down

0 comments on commit 843d639

Please sign in to comment.