Skip to content
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

Cannot read properties of undefined (reading 'click') #114

Open
2 tasks done
chemelli74 opened this issue Jun 23, 2024 · 6 comments
Open
2 tasks done

Cannot read properties of undefined (reading 'click') #114

chemelli74 opened this issue Jun 23, 2024 · 6 comments
Labels
bug Something isn't working question Further information is requested

Comments

@chemelli74
Copy link

Checklist:

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

Release with the issue: 1.2.9

Last working release (if known):

Browser and Operating System: Edge Versione 126.0.2592.56 (64bit) on Windows 11 22H2

Description of problem:

Hi,

I just took the time to check and fond that this card use polimer, so I guess is a good candidate for this error log:

2024-06-23 14:15:28.842 ERROR (MainThread) [frontend.js.latest.202406101] Uncaught error from Edge 126.0.0.0 on Windows 10
TypeError: Cannot read properties of undefined (reading 'click')
click (node_modules/@polymer/iron-menu-behavior/iron-menubar-behavior.js:35:21)
call (node_modules/@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js:479:22)
_triggerKeyHandler (node_modules/@polymer/iron-a11y-keys-behavior/iron-a11y-keys-behavior.js:465:13)

Javascript errors shown in the web inspector (if applicable):


Additional information:

@chemelli74 chemelli74 added the bug Something isn't working label Jun 23, 2024
@ildar170975
Copy link
Collaborator

Please post a minimal code causing the issue.

@chemelli74
Copy link
Author

Hi,

here my car dcode:

type: entities
entities:
  - entity: sensor.custom_lavatrice_status
    name: Stato
  - entity: sensor.lavatrice_power
    name: Consumo attuale
  - card:
      entity: switch.lavatrice
      name: Presa
    restrictions:
      pin:
        code: 1111
    condition:
      entity: switch.lavatrice
      value: 'on'
    type: custom:restriction-card
    row: true
  - entity: input_boolean.panni_da_stendere
show_header_toggle: false
title: Lavatrice

@ildar170975
Copy link
Collaborator

Tested with

type: entities
entities:
  - entity: sun.sun
    name: Stato
  - entity: sun.sun
    name: Consumo attuale
  - card:
      entity: switch.test_switch
      name: Presa
    restrictions:
      pin:
        code: 1111
    condition:
      entity: switch.test_switch_2
      value: 'on'
    type: custom:restriction-card
    row: true
  - entity: input_boolean.test_boolean
show_header_toggle: false
title: Lavatrice

2024.6.2
Observed no errors in Code inspector in Win10x64: Chrome 126.0.6478.62, FF 127, MS Edge.
Also no messages in Log.

@ildar170975
Copy link
Collaborator

@chemelli74
Do you still see the issue?

@ildar170975 ildar170975 added the question Further information is requested label Oct 1, 2024
@chemelli74
Copy link
Author

Unfortunately yes, I do.

@ildar170975
Copy link
Collaborator

ildar170975 commented Oct 1, 2024

Again failed to reproduce it in MS Edge (2024.9.x).
Do you have all entities available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants