JS errors when search block not present on page

Created on 16 December 2024, 20 days ago

Problem/Motivation

The search flyout library is a theme dependency - so is present on all pages. I strange circumstances we may not have the search block on a page - which will cause JS errors.

Steps to reproduce

Hide the search block

Proposed resolution

As this is a project for legacy projects only I don't want to spend time changing how the libraries are loaded since this likely doesn't even impact anybody else - simplest just to fix so that JS can exit early if the element is not present.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇿New Zealand ericgsmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024