Skip to content

Can't close dialog when editing a version #6211

@JulianVennen

Description

@JulianVennen

Please confirm the following.

What browsers are you seeing the problem on?

Google Chrome

Describe the bug

When you cancel adding a dependency to an existing version, the edit dialog becomes stuck.

Steps to reproduce

  1. Go to an existing version
  2. Click "Edit metadata"
  3. Click "Add dependency"
  4. Click "Cancel" (not the x button)
  5. Click "Cancel" again
    Now you see that the background is no longer blurred, but the dialog can't be closed and doesn't disappear.

If you click the x button instead of step 4, the dialog disappears, but most buttons (like all of the edit buttons) stop working.

Expected behavior

The dialog should disappear completely

Additional context

I can only reproduce this issue if I reload the website on the version page. If I navigate from the version list to the version and do the steps immediately, it appears to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend✏️ Needs info[Triage] Awaiting further information from the reporter such as reproduction steps or clarification

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions