mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis-github.com/angular-calendar/
MIT License
2.71k stars 864 forks source link

sanitizing HTML stripped some content #1702

Closed xadan1 closed 7 months ago

xadan1 commented 7 months ago

Describe the bug

When I click on each action event, occasionally the command associated with the action event (either edit or delete) is not executed. At the same time, the console displays the warning "sanitizing HTML stripped some content". i tried to put Domsanitizer into html label action (with hook), but dont work

Example (Event "IngresarInformacionAgenda" and "mensajeConfirmacioEliminar" contains a prime messageservice events ):

actions: CalendarEventAction[] = [ { label: '', a11yLabel: 'Edit', onClick: ({ event }: { event: CalendarEvent }): void => { //this.handleEvent('Edited', event); this.ingresarInformacionAgenda(event); }, }, { label: '', a11yLabel: 'Delete', onClick: ({ event, sourceEvent }: { event: CalendarEvent, sourceEvent: MouseEvent }): void => { this.mensajeConfirmacioEliminar(sourceEvent, event); }, }, ];

Versions

"@angular/core": "16.2.0" "angular-calendar": "0.31.0" "tslib": "2.3.0"

"typescript": "5.1.3"

Browser name and version: chrome Version 119.0.6045.199 (Build oficial) (arm64)

matts-bot[bot] commented 7 months ago

This issue has been closed automatically as it did not follow the issue template, please open a new issue that follows the bug report or feature request template.

Thank you! ✌️