Closed elpoelma closed 1 year ago
Oh, right. I think we can simply tweak this logic: https://github.com/appuniversum/ember-appuniversum/blob/664ad812ecd16244dcfa2765476878a2566e62e4/addon/components/au-main-header.js#L8
And only do the focussing if the element actually exists.
I initially had this idea for a more flexible solution but thought it was not worth the effort (but forgot to fix this issue 😬): https://github.com/appuniversum/ember-appuniversum/issues/195
Description The
AuMainHeader
component expects an element with idmain
to be present (such as anAuMainContainer
). It's possible that this is not always the case. If an element with idmain
is not present, the component throws an error.