Skip to content

Commit

Permalink
removed auto focus on paste
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCimini90 committed Feb 20, 2025
1 parent 4ffa18b commit 6f3b655
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/pn-commons/src/components/CodeModal/CodeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const CodeInput = ({ initialValues, isReadOnly, hasError, onChange }: Props) =>
// initialValues.length - values.length can be only >= 0 because of the slice of pastedCode
const emptyValues = new Array(initialValues.length - values.length).fill('');
setCurrentValues(values.concat(emptyValues));
focusInput(values.length);
};

useEffect(() => {
Expand Down

0 comments on commit 6f3b655

Please sign in to comment.