fix description not provided issue (#14510)

This commit is contained in:
Alan Ren
2021-03-02 18:07:40 -08:00
committed by GitHub
parent 7940714d00
commit 36e228ebf7
2 changed files with 3 additions and 3 deletions

View File

@@ -383,7 +383,7 @@ declare module 'azdata' {
}
export type RadioCardSelectionChangedEvent = { cardId: string; card: RadioCard };
export type RadioCardLinkClickEvent = { cardId: string, card: RadioCard, selectorText: RadioCardDescription };
export type RadioCardLinkClickEvent = { cardId: string, card: RadioCard, description: RadioCardDescription };
export interface RadioCardGroupComponent extends Component, RadioCardGroupComponentProperties {
/**

View File

@@ -190,9 +190,9 @@ export default class RadioCardGroup extends ComponentBase<azdata.RadioCardGroupC
event.stopPropagation();
this.fireEvent({
eventType: ComponentEventType.onDidClick,
args: {
args: <azdata.RadioCardLinkClickEvent>{
cardId,
textContents: deepClone(textContents),
description: deepClone(textContents),
card: deepClone(this.getCardById(cardId))
}
});