Skip to content

Commit

Permalink
fix: don't jump to end of textarea fields during change
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 31, 2025
1 parent de48691 commit 36c27a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/components/AutoField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ function AutoFieldInternal<

const onFocus = useCallback(
(e: React.FocusEvent) => {
if (mergedProps.name && e.target.nodeName === "INPUT") {
if (
mergedProps.name &&
(e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA")
) {
e.stopPropagation();

dispatch({
Expand Down

0 comments on commit 36c27a9

Please sign in to comment.