Skip to content

Fix crash when task title contains emojiΒ #10

Description

Problem

Adding a task with certain emoji in the title (e.g. πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ β€” a ZWJ sequence) crashes the app on Safari.

Steps to reproduce

  1. Open TaskForge on Safari iOS 17.
  2. Add a task titled "Plan trip πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦".
  3. Toggle it done.
  4. App freezes; console shows Maximum call stack size exceeded.

Likely cause

We're recursing through the title for some reason in the render path (line 51 of app.js). Should not need to recurse.

A bounty has been opened for this issue on CodeBounty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions