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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
I'm using a paper-listbox in an Angular2Dart component. I set up a callback in the ngOnInit method. listbox = querySelector('.scroll-list'); listbox.addOwnKeyBinding('pageup', 'onPageUp');
When the pageup button is press when the listbox has focus, an error is thrown:
Description
I'm using a paper-listbox in an Angular2Dart component. I set up a callback in the ngOnInit method.
listbox = querySelector('.scroll-list'); listbox.addOwnKeyBinding('pageup', 'onPageUp');
When the pageup button is press when the listbox has focus, an error is thrown:
Uncaught TypeError: Cannot read property 'call' of undefined Polymer.IronA11yKeysBehavior._triggerKeyHandler @ (index):14940 Polymer.IronA11yKeysBehavior._onKeyBindingEvent @ (index):14924
The code at 14940 is:
this[handlerName].call(this, event);
handlerName = "onPageUp"
this = paper-listbox.scroll-list
More detail and code can found here: http://stackoverflow.com/questions/38773268/polymer-call-back-giving-the-error-uncaught-typeerror-cannot-read-property-ca
My pubspec file specifies:
polymer: ^1.0.0-rc.17
polymer_elements: ^1.0.0-rc.8
Expected outcome
The callback method being invoked
Actual outcome
The error given above.
Live Demo
Steps to reproduce
The basis for my code is the https://dart.academy/dart-angular-2-and-polymer-together/
I imagine you could add a listbox to it and reproduce it.
Browsers Affected
The text was updated successfully, but these errors were encountered: