-
Notifications
You must be signed in to change notification settings - Fork 28
[Mission4/이혜준] - Project_Notion_VanillaJS #24
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
base: 3/#4_leehyejun
Are you sure you want to change the base?
Changes from 1 commit
eb919f3
1136a51
869c953
5e652b6
270651a
1926a68
5ad629f
71610c3
47b7ffe
dc81dd1
b4219b6
3bb525a
3773b11
c4770e1
d1b8220
f51d1de
98adb9b
f50b874
8d6365a
2c21a36
dccbb2e
2d97090
eac8759
6b014c9
55024bd
c2e0a8e
7e81611
7f58224
125fdab
3626b12
d235f4f
49a1129
43c58c8
0c848c3
543653c
4189852
44b612e
c06f7e3
d712485
49c04ac
99b073d
486fc28
c979e6a
9d596b5
720e580
d1bb616
a19d4b3
3c87f90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,11 @@ export default function PostEditPage({ $target, initialState }) { | |
| } | ||
|
|
||
| removeItem(postLocalSaveKey); | ||
|
|
||
| this.setState({ | ||
| postId: post.id + "", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 저는 이거 일일히 toString()으로 사용했는데 이렇게 하면 훨씬 간결해지네요 👍 |
||
| post, | ||
| }); | ||
|
Comment on lines
+43
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. editing 할때마다 this.setState => editor.setState하게되어 저장하면 form focus가 없어집니다. 제 생각에는 editing할때는 setState 없이 api 업데이트만 하고 page reload, push state할때만 setState 하면 더 좋을것같습니다~
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오 안그래도 이 부분 고민했었는데 감사합니다! 더 고민해보겠습니다 |
||
| }, 1000); | ||
| }, | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 이 부분 어떻게 처리할지 고민 많이 했는데 커스텀 이벤트를 활용하는것이 좋네요..!! 이것도 나중에 변수로 만들어내면 더 깔끔할것같다는 생각입니다~