Default config read error: Cannot read property 'listeners' of undefined
Closed this issue · 3 comments
deanmraz commented
Confirmed on ember 2.3 and 2.4
By default it should be expected to listen to: ['keyUp', 'keyDown', 'keyPress'], but without emberKeyboard defined in config.
This is the error I get when trying to use defaults:
keyboard.js:54 Uncaught TypeError: Cannot read property 'listeners' of undefined
var listeners = _emberGetConfig['default'].emberKeyboard.listeners || ['keyUp', 'keyDown', 'keyPress'];
Should check to see if key "emberKeyboard" exists before access listeners.
briarsweetbriar commented
Good catch! Should be resolved by a10daf7. The fix should be on NPM as 1.0.2 in a few minutes.
briarsweetbriar commented
The issue should be resolved. Let me know if you continue to experience it!
deanmraz commented
@null-null-null confirmed, thanks!