Given two entries with typeaheads, one chained to the other (selection in the first determines choicelist for the second), there seems to be an issue with values containing whitespace, even though the entries are linked by id, not display value.
The behaviour is best shown in a demo: JSFiddle
- select an object in the first typeahead
- select an object in the second typeahead, see that it works
- select the object named broken in the first typeahead
- try to select an object in the second typeahead, there is no choicelist available
id of the object selected in the first entry determines the choicelist of the second. However, if there is a space at the end of the
name of the selected object, the second typeahead breaks.
If you were to remove the space at the end of
Broken , the second entry starts working as expected.
This seems like a bug to me, since the display value of the first entry should play no part in the second.
Am I wrong?
Source: Angular Questions