Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit738ff6f

Browse files
clear fields
1 parent87c5831 commit738ff6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/components/add-note/add-note.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ function AddNote(props: AddNoteProps){
2222
priority,
2323
id:uuidv4()
2424
})
25+
setText('')
26+
setPriority('low')
2527
}
2628

2729
consthandleSelect=(e:React.ChangeEvent<HTMLSelectElement>)=>{
@@ -31,7 +33,7 @@ function AddNote(props: AddNoteProps){
3133
return(
3234
<div>
3335
<formclassName="add-note">
34-
<inputtype="text"onChange={handleChange}/>
36+
<inputtype="text"onChange={handleChange}value={text}/>
3537
<selectonChange={handleSelect}value={priority}>
3638
<optionvalue="high">High</option>
3739
<optionvalue="medium">Medium</option>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp