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

Description

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.