Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[4.1] Fix repeatable initialization #3148

Merged
merged 3 commits into from
Aug 25, 2020
Merged

[4.1] Fix repeatable initialization #3148

merged 3 commits into from
Aug 25, 2020

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Aug 25, 2020

Like we talked yesterday the best solution would be to split the container from the main form and add it later with JS.

Also added an js event backpack_field.deleted that allows us to do some cleanup when fields are deleted from page. In this specific scenario I applied it to ckeditor, allowing to fully destroy the ckinstances preventing js errors when ckeditor try to find unexistent instances.

I tested in dummy, it worked great, please git a go a let me know.

Best,
Pedro

Copy link
Member

@tabacitu tabacitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EXCELLENT work here @pxpm . I've tested it and it works GREAT. Also added a Ckeditor afterwards and that works great now too, so it definitely fixes #3141 (and I believe #3137 too).

Merging now. It'll be available as Backpack 3.1.19 later today.

@tabacitu tabacitu merged commit 3839f42 into master Aug 25, 2020
@tabacitu tabacitu deleted the refactor-repeatable branch August 25, 2020 11:45
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants