question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`paper-dropdown-menu` custom element doesnt work anymore with lazy loading

See original GitHub issue

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: As of HA 0.115, most custom elements are lazy loaded so using paper-dropdown-menu doesn’t work anymore. **Last working release (if known):0.114

Browser and Operating System: chrome/windows 10

Description of problem:

  • make a new panel with only this boilerplate card
  • open editor - dropdown will be broken
  • if something internal to HA loads the paper-dropdown-menu element (ie from state table) then this will work just fine since the js chuck will be loaded with the elements needed.

Additional information: Need to find a way to trigger loading of custom elements from custom cards so we can use custom elements such as paper-dropdown-menu in custom cards again. Similar behavior for ha-checkbox, ha-color-picker, etc

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ljmerzacommented, Oct 6, 2020

I would use the official importer coming in v0.116.

Read more comments on GitHub >

github_iconTop Results From Across the Web

paper-dropdown-menu not working in a lit-element
To start, this problem only happens when using paper-dropdown-menu (with paper-listbox inside) in a lit-element . We're using the component in ...
Read more >
Custom Cards: Create a method that can import HA Elements ...
E.g. the paper-dropdown-menu is rendered as a list until you open a page ... I want to either get this going or you...
Read more >
Polymer/web-component-tester - Gitter
I'm trying to show/hide a div but it doesn't seem to work ... is there a way to lazy-load imports of custom elements....
Read more >
PolymerElements/paper-dropdown-menu - webcomponents.org
A Material Design browser select element ... paper-dropdown-menu-light.js, 20.3 kB, application/javascript. paper-dropdown-menu-shared-styles.d.ts, 268 B ...
Read more >
PySimpleGUI
So don't be fooled into thinking PySimpleGUIQt is barely working or doesn't have many widgets to choose from. You even get TWO "Bonus...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found