Skip to main content
Skip table of contents

LMS-1356 Unable to create Official Lists due to a "Can’t read properties of null" error

ID

Raised by

Affects version

Jira reference(s)

Status

LMS-1356

HoL

14

SPT-1342

OPEN

Issue description

An error message sometimes appears when trying to create an amendment list from the Official List tab. The error message is “Can’t read properties of null (reading focus)”. This can also happen when trying to create a new list on the Amendment Workspace tab.

image-20240501-122509.png

You may find that the list has actually been created, despite the error: closing the modal and refreshing the page sometimes shows the list has been generated.

Workaround

This error message appears to be caused (or at least exacerbated) by browser settings related to allowing or blocking pop-up windows. The following steps should help to resolve the issue:

In Chrome:

  1. Open Chrome Settings: Click on the three dots in the top-right corner of the Chrome browser window to open the menu. From the dropdown, select "Settings."

  2. Navigate to Privacy and Security: In the Settings menu, scroll down and click on "Privacy and Security" in the left-hand sidebar.

  3. Access Site Settings: Within the Privacy and Security section, locate and click on "Site Settings".

  4. Manage Pop-ups and Redirects: Under the Permissions section, find and click on "Pop-ups and redirects".

  5. Allow Pop-ups from Lawmaker: In the Pop-ups and Redirects settings, locate the "Allow" section. Click on "Add" next to "Allow," and enter the URL for Lawmaker's website (e.g., https://lawmaker.legislation.gov.uk/, https://lawmaker.staging.legislation.gov.uk/, https://lawmaker.dev.legislation.gov.uk/). This will whitelist Lawmaker and prevent Chrome blocking its pop-ups.

In Edge:

  1. Open Edge Settings: Click on the three dots in the top-right corner of the Edge browser window to open the menu. From the dropdown, select "Settings."

  2. Navigate to Cookies and Site Permissions: In the Settings menu, scroll down and click on "Cookies and Site Permissions" in the left-hand sidebar.

  3. Open Pop-ups and Redirects: Within the "Cookies and Site Permissions" section, locate and click on "Pop-ups and Redirects".

  4. Allow Pop-ups from Lawmaker: In the Pop-ups and Redirects settings, locate the "Allow" section. Click on "Add" next to "Allow," and enter the URL for Lawmaker's website (e.g., https://lawmaker.legislation.gov.uk/, https://lawmaker.staging.legislation.gov.uk/ , https://lawmaker.dev.legislation.gov.uk/). This will whitelist Lawmaker and prevent Edge blocking its pop-ups.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.