We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c5831 commit 738ff6fCopy full SHA for 738ff6f
src/components/add-note/add-note.tsx
@@ -22,6 +22,8 @@ function AddNote(props: AddNoteProps){
22
priority,
23
id: uuidv4()
24
})
25
+ setText('')
26
+ setPriority('low')
27
}
28
29
const handleSelect = (e:React.ChangeEvent<HTMLSelectElement>)=>{
@@ -31,7 +33,7 @@ function AddNote(props: AddNoteProps){
31
33
return(
32
34
<div>
35
<form className="add-note">
- <input type="text" onChange={handleChange}/>
36
+ <input type="text" onChange={handleChange} value={text}/>
37
<select onChange={handleSelect} value={priority}>
38
<option value="high">High</option>
39
<option value="medium">Medium</option>
0 commit comments