maykar / compact-custom-header

This project has been replaced by Custom Header
MIT License
239 stars 31 forks source link

CCH breaks when only using a single view/panel #230

Closed IDmedia closed 4 years ago

IDmedia commented 4 years ago

Describe the issue:

CCH breaks when using only one view/panel. Tested on multiple HASS installs with no third party modules installed.

Config YAML:

# Compact Custom Header
cch:
  swipe: true
  swipe_wrap: true
  swipe_animate: fade
  swipe_amount: 30
  voice: hide
  options: clock
  clock_format: 24

# Views
views:
  - title: Home
    panel: true
    cards:
      ....

HA and/or Browser Error:

Uncaught TypeError: Cannot read property 'querySelector' of null
    at CompactCustomHeader.scrollTabIconIntoView (compact-custom-header.js:346)
    at compact-custom-header.js:265
    at Array.forEach (<anonymous>)
    at MutationObserver.callback (compact-custom-header.js:213)

Versions and Browser:

CCH 1.4.5 Google Chrome 78 (Latest) Yaml-mode

maykar commented 4 years ago

Thanks, this is already fixed in the dev branch and will be in the next release.

maykar commented 4 years ago

Should be fixed in latest release