Skip to content

Error when working in modals #273

Closed
Closed
@georgegebbett

Description

@georgegebbett

Problem/Motivation

I have noticed some strange behaviour in the latest release when working in Grocy's modals - I have encountered this issue specifically when editing stock items, and when adding ingredients to recipes, but I suspect it occurs in all modals.

Expected behaviour

When you click the final save button in a modal, the action is executed and the modal closes.

Actual behaviour

The action is executed, but the modal does not close. An error is thrown in the JS console:

Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '/api/hassio_ingress/2P3VuRGiYSwW[REMOVED_BY_ME]1Nc7CCC4zIRgKsLXvU/' in a call to 'postMessage'.

Steps to reproduce

Attempt to add ingredient to recipe. The error only occurs when using Grocy through Ingress and if accessed through an exposed port the behaviour is as expected.

Proposed changes

Unfortunately I don't know enough about how this works to propose a solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions