Skip to content

Commit 18d6eed

Browse files
authored
fix focus for grid on mobile (#168)
* never autofocus mobile * fixes
1 parent 46c683e commit 18d6eed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/workflow/config/action-grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ export function ActionGrid({
202202
};
203203

204204
useEffect(() => {
205-
if (isNewlyCreated && inputRef.current) {
205+
if (isNewlyCreated && !isMobile && inputRef.current) {
206206
inputRef.current.focus();
207207
}
208-
}, [isNewlyCreated]);
208+
}, [isNewlyCreated, isMobile]);
209209

210210
const filteredActions = actions.filter((action) => {
211211
const searchTerm = filter.toLowerCase();

0 commit comments

Comments
 (0)