Skip to content

Commit df7352b

Browse files
committed
Fix mounting of Rating component
1 parent dda4460 commit df7352b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/ui/src/components/rating/rating.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component, Prop, Event, EventEmitter, h, State } from '@stencil/core';
2+
import { messageQueueService } from '../../store/message-queue';
23

34
@Component({
45
tag: 'rasa-rating',
@@ -26,6 +27,10 @@ export class RasaRating {
2627
*/
2728
@State() selectedOption: string | null = null;
2829

30+
componentDidLoad() {
31+
messageQueueService.completeRendering();
32+
}
33+
2934
private handleOptionClick(optionValue: string) {
3035
this.selectedOption = optionValue; // Update the selected option
3136
this.ratingSelected.emit({ value: optionValue }); // Emit the event

0 commit comments

Comments
 (0)