Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: issue with textarea not capturing values or allowing input #237

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ exports[`Storyshots Components/Elements/CommentaryBox Default 1`] = `
onChange={[Function]}
placeholder="Add a comment"
rows={1}
value=""
/>
</div>
<label
Expand Down
3 changes: 1 addition & 2 deletions src/components/elements/Inputs/textArea/TextArea.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export const useTextAreaAuto = (
ref: React.RefObject<HTMLTextAreaElement>;
} = {
onChange: handleChange,
ref: textAreaRef,
value
ref: textAreaRef
};

return { value, handleChange, textareaProps };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ exports[`Storyshots Components/Elements/Inputs/TextArea Default 1`] = `
id=":r2g:"
onChange={[Function]}
placeholder="Input placeholder"
value=""
/>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ exports[`Storyshots Components/Extensive/Modal/ModalWithLogo Default 1`] = `
onChange={[Function]}
placeholder="Add a comment"
rows={1}
value=""
/>
</div>
<label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ exports[`Storyshots Components/Extensive/Form/Wizard With Get Form Step Hook 1`]
onBlur={[Function]}
onChange={[Function]}
onChangeCapture={[Function]}
value=""
/>
</div>
</li>
Expand Down Expand Up @@ -935,7 +934,6 @@ exports[`Storyshots Components/Extensive/Form/Wizard With Get Form Step Hook 1`]
onBlur={[Function]}
onChange={[Function]}
onChangeCapture={[Function]}
value=""
/>
</div>
</li>
Expand Down