You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(priority): sanitize priority values to prevent DOM errors
Priority values containing spaces (e.g., '⏰ 2025-06-05 14:25' or 'Invitation to meeting')
were causing InvalidCharacterError when used in CSS class names. This fix adds a utility
function to sanitize priority values by removing spaces and invalid characters.
- Add priorityUtils module with sanitizePriorityForClass() function
- Update all components that use priority in CSS classes:
- kanban-card.ts (3 locations)
- gantt/task-renderer.ts (2 locations)
- quadrant-card.ts (1 location)
- InlineEditor.ts (1 location)
- listItem.ts (1 location)
- treeItem.ts (1 location)
- Preserve numeric priorities (1-5) as-is
- Replace spaces with hyphens for text priorities
- Remove special characters invalid in CSS tokens
Fixes: Failed to execute 'add' on 'DOMTokenList' errors in kanban, gantt, and quadrant views
0 commit comments