Skip to content

[2.0][Admin] Can't delete taxon from the UI #17650

@jamierichsmith

Description

@jamierichsmith

Sylius version affected: 2

Description
Javascript error preventing deletion of taxon from the admin panel. I think this was broken in this commit 2334a76 where dropdown was changed to btn-group

Image

Steps to reproduce
Is currently erroring on the live demo https://v2.demo.sylius.com/admin/taxons/new when attempting to delete a taxon

Possible Solution

Fixed for me when I edited AdminBundle/Resources/assets/controllers/DeleteTaxonController.js and changed

this.modalElement.closest('.dropdown').appendChild(this.modalElement);

to

this.modalElement.closest('.btn-group').appendChild(this.modalElement);

Metadata

Metadata

Assignees

Labels

AdminAdminBundle related issues and PRs.BugConfirmed bugs or bugfixes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions