Skip to content

Commit

Permalink
fix: correct the action button disable
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbas committed Nov 16, 2023
1 parent da17c55 commit 1b2612d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 1 addition & 9 deletions packages/chat-component/src/components/chat-thread-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ export class ChatThreadComponent extends LitElement {
}, 500);
}

handleCitationClick(citationClickedEvent: Event) {
this.dispatchEvent(citationClickedEvent);
}

handleFollowupQuestionClick(question: string, event: Event) {
event.preventDefault();
const citationClickedEvent = new CustomEvent('on-followup-click', {
Expand Down Expand Up @@ -148,11 +144,7 @@ export class ChatThreadComponent extends LitElement {
if (citations && citations.length > 0) {
return html`
<div class="chat__citations">
<citation-list
.citations="${citations}"
.label="${globalConfig.CITATIONS_LABEL}"
@on-citation-click="${this.handleCitationClick}"
></citation-list>
<citation-list .citations="${citations}" .label="${globalConfig.CITATIONS_LABEL}"></citation-list>
</div>
`;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/chat-component/src/styles/chat-thread-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const styles = css`
height: 40px;
position: relative;
}
.chat__header--button:disabled,
.chat__header--button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.chat__header--span {
font-size: smaller;
transition: all 0.3s ease-out 0s;
Expand Down

0 comments on commit 1b2612d

Please sign in to comment.