-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested InstanceSelectorPanel loses selectability #20
Comments
Thanks for the report. This is the JS code that injects the "Select" button: wagtail-instance-selector/instance_selector/static/instance_selector/instance_selector_embed.js Lines 34 to 47 in 7a62164
I'm unlikely to have the time to look into this myself, so PRs are welcome. |
Actually, could be this block of JS instead: wagtail-instance-selector/instance_selector/static/instance_selector/instance_selector_embed.js Lines 55 to 82 in 7a62164
|
If I have open a Instance Selector Panel pop-up, and then create a new object in there to select, it's fine.
But if while it's open, I open an Instance Selector Panel defined on that object - so being 2 levels deep, kind of thing,
then when I save the original object, it shows a regular admin listing view - so with 'edit' and 'delete' buttons, and no 'select' button.
Pseudo code:
I've solved currently by switching all of the sub-selectors into a more basic
ModelChooserPanel
that we're using in other places in the project.The text was updated successfully, but these errors were encountered: