Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

App crashes after entering invalid string #40

@Jexordexan

Description

@Jexordexan

screen shot 2016-12-09 at 11 37 52 am

Everything works great until you enter a bad mention 😞

Steps:

  • Go to the example page and type in @xxx or some other string that has no valid choices.
  • Press enter to select.

Result:

  • A new-line is created
  • A null is saved as a "mention"
  • The module stops working.
  • Every keystroke produces the following error:

angular.js:11655 TypeError: Cannot read property 'first' of undefined

Expected:

  • The module continues to work and @xxx is rendered as normal text with no new-line.

It seems there are several areas that need null checks for invalid entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions