File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Shared/Components/Textarea Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ export const ImageTagsContainer = ({
401
401
Tags cannot be edited/removed later
402
402
</ div >
403
403
) }
404
- < div className = "cn-7 mt-12" >
404
+ < div className = "mt-12" >
405
405
< Textarea
406
406
label = "Comment"
407
407
value = { newDescription }
Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ const Textarea = ({
32
32
const textareaRef = useRef < HTMLTextAreaElement > ( null )
33
33
34
34
const updateRefsHeight = ( height : number ) => {
35
- const refElement = textareaRef ? .current
35
+ const refElement = textareaRef . current
36
36
if ( refElement ) {
37
37
refElement . style . height = `${ height } px`
38
38
}
39
39
}
40
40
41
41
const reInitHeight = ( ) => {
42
- const currentHeight = parseInt ( textareaRef ? .current ? .style . height , 10 )
43
- let nextHeight = textareaRef ? .current ? .scrollHeight || 0
42
+ const currentHeight = parseInt ( textareaRef . current . style . height , 10 )
43
+ let nextHeight = textareaRef . current . scrollHeight || 0
44
44
45
45
if ( nextHeight < currentHeight || currentHeight > AUTO_EXPANSION_MAX_HEIGHT ) {
46
46
return
You can’t perform that action at this time.
0 commit comments