File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export default function NewComment({ updateId }: { updateId: string }) {
87
87
< div className = "min-w-0 flex-1" >
88
88
< form onSubmit = { handleSubmit ( onSubmit ) } >
89
89
< TextArea
90
+ id = { `new-comment-${ updateId } ` }
90
91
ref = { register ( { required : true } ) }
91
92
label = "Comment"
92
93
name = "description"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { User } from 'src/pages/members'
16
16
import { useMutation , useQueryClient } from 'react-query'
17
17
import toast from 'react-hot-toast'
18
18
import ListModal from '../modal/ListModal'
19
+ import { scrollToContentWithId } from 'src/utils'
19
20
20
21
export type GoalUpdateType = {
21
22
id : string
@@ -229,7 +230,11 @@ export default function UpdateComment({
229
230
< Button
230
231
variant = "ghost"
231
232
leadingIcon = { Chats }
232
- isDisabled = { true }
233
+ onClick = { ( ) => {
234
+ const id = `new-comment-${ comment . updateId } `
235
+ document . getElementById ( id ) . focus ( )
236
+ scrollToContentWithId ( id )
237
+ } }
233
238
>
234
239
Reply
235
240
</ Button >
You can’t perform that action at this time.
0 commit comments