-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymer 3.2: TypeError cannot convert null to object #93
Comments
+1 |
Wrap constructor() {
super();
this._keyBindings = this._keyBindings || {};
} |
I'll try that! |
I am seeing the same thing. |
Can you provide an example where this fails? I'm not seeing this behavior by running the tests of |
I've been trying to recreate a standalone repro and have failed 😞 However, I can give you a repro in our demo that you can check out locally too. The repro is deployed here: https://repro-a11y--home-assistant-demo.netlify.com To repro:
Notes:
If you want to check out the repro locally:
|
This could be Polymer/polymer@50ad018c |
Hmm, I see you are extending This is probably breaking the registration of |
Ok, it looks like in 3.2, we tried to optimize behavior registration to behave more like Polymer 1.x, and mix behaviors onto the element prototype, rather than generating a mixin for every behavior. However, this breaks your particular use case, because the first element to boot up will have the We need to run |
Description
When I try to upgrade from Polymer 3.1 to Polymer 3.2,
When creating a
paper-dialog
(which depends on iron-a11y-keys-behavior),An error is thrown
Expected outcome
No error
Actual outcome
Uncaught TypeError: Cannot convert undefined or null to object (node_modules/@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js:430)
at HTMLElement._attachDom (node_modules/@polymer/polymer/lib/mixins/element-mixin.js:739:24)
at HTMLElement._readyClients (node_modules/@polymer/polymer/lib/mixins/element-mixin.js:703:26)
at HTMLElement._flushClients (node_modules/@polymer/polymer/lib/mixins/property-effects.js:1734:14)
at HTMLElement._propertiesChanged (node_modules/@polymer/polymer/lib/mixins/property-effects.js:1883:12)
at HTMLElement._flushProperties (node_modules/@polymer/polymer/lib/mixins/properties-changed.js:390:14)
at HTMLElement._flushProperties (node_modules/@polymer/polymer/lib/mixins/property-effects.js:1716:13)
at HTMLElement.ready (node_modules/@polymer/polymer/lib/mixins/property-effects.js:1835:12)
at HTMLElement.ready (node_modules/@polymer/polymer/lib/mixins/element-mixin.js:687:13)
at HTMLElement.ready (node_modules/@polymer/polymer/lib/mixins/dir-mixin.js:158:13)
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: