You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue can be reproduced on the demo page containing paper-chips examples.
When we fill any value in the 'Default template' example and focus out of the input and then focus back again, an error is thrown: Uncaught TypeError: Cannot read property 'close' of undefined
the autocomplete param is an object with an 'actions' prop when the inputFocus action is called from the paper-chips-autocomplete component. Otherwise it is a string containing the value enered in the input.
The if () {} condition should contain a check if the actions prop is available on autocomplete parameter. It should look like:
The issue can be reproduced on the demo page containing paper-chips examples.
When we fill any value in the 'Default template' example and focus out of the input and then focus back again, an error is thrown:
Uncaught TypeError: Cannot read property 'close' of undefined
It seems that this statement is not guarded properly: https://github.com/gpluta/ember-paper/blob/master/addon/components/paper-chips.js#L77
the
autocomplete
param is an object with an 'actions' prop when theinputFocus
action is called from thepaper-chips-autocomplete
component. Otherwise it is a string containing the value enered in the input.The if () {} condition should contain a check if the
actions
prop is available onautocomplete
parameter. It should look like:Can I create a PR for this little fix? Am I missing something important?
The text was updated successfully, but these errors were encountered: