Skip to content

Commit

Permalink
Merge pull request #237 from wri/fix/textarea-value-issue
Browse files Browse the repository at this point in the history
Fix: issue with textarea not capturing values or allowing input
  • Loading branch information
LimberHope authored Jun 6, 2024
2 parents 3c98194 + 1e89ec0 commit d2ccc19
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
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

0 comments on commit d2ccc19

Please sign in to comment.