@@ -200,21 +200,13 @@ export class AutocompleteTextareaComponent
200
200
}
201
201
if ( changes . value && ! this . value && this . messageInput ) {
202
202
this . messageInput . nativeElement . style . height = 'auto' ;
203
- this . chatClientService . chatClient . logger (
204
- 'info' ,
205
- '[Autocomplete textarea] Value reset, adjusting textarea height to auto'
206
- ) ;
207
203
this . updateMentionedUsersFromText ( ) ;
208
204
} else if (
209
205
changes . value &&
210
206
this . value &&
211
207
this . messageInput &&
212
208
this . isViewInited
213
209
) {
214
- this . chatClientService . chatClient . logger (
215
- 'info' ,
216
- '[Autocomplete textarea] Value changed'
217
- ) ;
218
210
setTimeout ( ( ) => {
219
211
if ( this . messageInput . nativeElement . scrollHeight > 0 ) {
220
212
this . adjustTextareaHeight ( ) ;
@@ -225,10 +217,6 @@ export class AutocompleteTextareaComponent
225
217
226
218
ngAfterViewInit ( ) : void {
227
219
this . isViewInited = true ;
228
- this . chatClientService . chatClient . logger (
229
- 'info' ,
230
- '[Autocomplete textarea] View inited'
231
- ) ;
232
220
if ( this . messageInput . nativeElement . scrollHeight > 0 ) {
233
221
this . adjustTextareaHeight ( ) ;
234
222
}
@@ -263,10 +251,6 @@ export class AutocompleteTextareaComponent
263
251
264
252
inputChanged ( ) {
265
253
this . valueChange . emit ( this . messageInput . nativeElement . value ) ;
266
- this . chatClientService . chatClient . logger (
267
- 'info' ,
268
- '[Autocomplete textarea] Input changed'
269
- ) ;
270
254
this . adjustTextareaHeight ( ) ;
271
255
}
272
256
@@ -283,20 +267,8 @@ export class AutocompleteTextareaComponent
283
267
}
284
268
285
269
private adjustTextareaHeight ( ) {
286
- const necessaryHeight = `${ this . messageInput . nativeElement . scrollHeight } px` ;
287
- if ( this . messageInput . nativeElement . style . height === necessaryHeight ) {
288
- this . chatClientService . chatClient . logger (
289
- 'info' ,
290
- `[Autocomplete textarea] No need to adjust textarea height`
291
- ) ;
292
- } else {
293
- this . chatClientService . chatClient . logger (
294
- 'info' ,
295
- `[Autocomplete textarea] Adjusting textarea height to ${ necessaryHeight } `
296
- ) ;
297
- this . messageInput . nativeElement . style . height = '' ;
298
- this . messageInput . nativeElement . style . height = necessaryHeight ;
299
- }
270
+ this . messageInput . nativeElement . style . height = '' ;
271
+ this . messageInput . nativeElement . style . height = `${ this . messageInput . nativeElement . scrollHeight } px` ;
300
272
}
301
273
302
274
private transliterate ( s : string ) {
0 commit comments