File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,7 @@ export function Table({
748748 setSelectionAnchor ( moveCell ( anchor , cols . length , totalRows , - 1 ) )
749749 }
750750 setSelectionFocus ( null )
751+ containerRef . current ?. focus ( { preventScroll : true } )
751752 } , [ ] )
752753
753754 const handleInlineSave = useCallback (
@@ -771,6 +772,7 @@ export function Table({
771772 const handleInlineCancel = useCallback ( ( ) => {
772773 setEditingCell ( null )
773774 setInitialCharacter ( null )
775+ containerRef . current ?. focus ( { preventScroll : true } )
774776 } , [ ] )
775777
776778 const handleEmptyRowClick = useCallback ( ( rowIndex : number , columnName : string ) => {
@@ -849,6 +851,7 @@ export function Table({
849851 const handleEmptyRowCancel = useCallback ( ( ) => {
850852 setEditingEmptyCell ( null )
851853 setInitialCharacter ( null )
854+ containerRef . current ?. focus ( { preventScroll : true } )
852855 } , [ ] )
853856
854857 const generateColumnName = useCallback ( ( ) => {
You can’t perform that action at this time.
0 commit comments