diff --git a/website/src/components/UserFeedback/index.jsx b/website/src/components/UserFeedback/index.jsx index 732a1c65cb..3c0fbef31c 100644 --- a/website/src/components/UserFeedback/index.jsx +++ b/website/src/components/UserFeedback/index.jsx @@ -95,7 +95,14 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step1 = () => { const [newValue, setNewValue] = React.useState(undefined); return ( -
+ { + e.preventDefault(); + setScore(newValue); + stepForward(); + }} + >

On a scale from 1 to 5 where 1 is very unsatisfied and 5 @@ -151,17 +158,7 @@ export const FeedbackWrapper = ({ seedData, open }) => {

- +
); @@ -169,8 +166,18 @@ export const FeedbackWrapper = ({ seedData, open }) => { const Step2 = () => { const textareaId = 'feedback-comment-input'; + const saveComment = () => + setComment(document.getElementById(textareaId).value); + return ( -
+ { + e.preventDefault(); + saveComment(); + stepForward(); + }} + >