mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-27 09:44:39 +00:00
* fix(tasks): escape task IDs in querySelector to handle special characters Task IDs from Dropbox sync can contain special characters like curly braces that are invalid in CSS selectors, causing querySelector to throw. Use CSS.escape() on the task ID before passing it to querySelector, matching the existing pattern in planner-plan-view. Fixes #7219 * fix(tasks): use getElementById for single-element lookups, add CSS.escape to querySelectorAll Switch querySelector to getElementById for task ID lookups that only need a single element — getElementById does not parse CSS selectors so special characters in task IDs are handled natively. Add CSS.escape to the querySelectorAll call in task.component.ts which needs to find multiple elements with the same task ID. |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| environments | ||
| static | ||
| styles | ||
| test-helpers | ||
| typings | ||
| _common.scss | ||
| favicon.ico | ||
| hammer-config.class.ts | ||
| index.html | ||
| karma.conf.js | ||
| main.ts | ||
| manifest.json | ||
| polyfills.ts | ||
| styles.scss | ||
| test.ts | ||
| tsconfig.app.json | ||
| tsconfig.spec.json | ||
| tsconfig.worker.json | ||