File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ export default class IgcChatInputComponent extends LitElement {
4343 ) ;
4444 }
4545
46- @query ( 'textarea' )
47- private textInputElement ! : HTMLTextAreaElement ;
46+ @query ( IgcTextareaComponent . tagName )
47+ private textInputElement ! : IgcTextareaComponent ;
4848
4949 @watch ( 'acceptedFiles' , { waitUntilFirstUpdate : true } )
5050 protected acceptedFilesChange ( ) : void {
@@ -209,9 +209,9 @@ export default class IgcChatInputComponent extends LitElement {
209209 this . textInputElement . style . height = 'auto' ;
210210 }
211211
212- setTimeout ( ( ) => {
212+ this . updateComplete . then ( ( ) => {
213213 this . textInputElement ?. focus ( ) ;
214- } , 0 ) ;
214+ } ) ;
215215 }
216216
217217 private handleFileUpload ( e : Event ) {
Original file line number Diff line number Diff line change @@ -15,10 +15,6 @@ export { default as IgcCarouselComponent } from './components/carousel/carousel.
1515export { default as IgcCarouselIndicatorComponent } from './components/carousel/carousel-indicator.js' ;
1616export { default as IgcCarouselSlideComponent } from './components/carousel/carousel-slide.js' ;
1717export { default as IgcChatComponent } from './components/chat/chat.js' ;
18- export { default as IgcChatInputComponent } from './components/chat/chat-input.js' ;
19- export { default as IgcChatMessageComponent } from './components/chat/chat-message.js' ;
20- export { default as IgcChatMessageListComponent } from './components/chat/chat-message-list.js' ;
21- export { default as IgcChatMessageAttachmentsComponent } from './components/chat/message-attachments.js' ;
2218export { default as IgcCheckboxComponent } from './components/checkbox/checkbox.js' ;
2319export { default as IgcCircularProgressComponent } from './components/progress/circular-progress.js' ;
2420export { default as IgcCircularGradientComponent } from './components/progress/circular-gradient.js' ;
You can’t perform that action at this time.
0 commit comments