Skip to content

Commit

Permalink
feat(frontend): Remove autoFocus prop from NewNoteScreen input (#main)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Dec 22, 2023
1 parent bcf8fbf commit c0a6480
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions backend/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func Start() {
server.GET("/assets/*filepath", website.ServeAssets)
server.GET("/public/*filepath", website.ServePublic)
server.Static("/notes/attachments", config.LocalNotePath+"attachments")
server.Static("/notes/assets", config.LocalNotePath+"assets")
server.NoRoute(website.NoRoot)

api := server.Group("/api")
Expand Down
1 change: 0 additions & 1 deletion frontend/src/screens/NewNoteScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ const NewNoteScreen: React.FC = () => {
onChange={v => setContent(v!)}
tabIndex={2}
placeholder="Note..."
autoFocus
ref={contentInputRef}
height={window.innerHeight - 180}
preview={window.innerWidth < 500 ? 'edit' : 'live'}
Expand Down

0 comments on commit c0a6480

Please sign in to comment.