We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e26cc6 commit b7af362Copy full SHA for b7af362
app/assets/javascripts/activeadmin_addons/inputs/nested-select.js
@@ -151,6 +151,9 @@ var initializer = function() {
151
152
if (!!parent) {
153
var parentSelectorId = '#' + model + '_' + parent;
154
+ if (!$(parentSelectorId).length) {
155
+ parentSelectorId = $(container).find('*[id*=' + parent + ']')[0];
156
+ }
157
var parentSelector = $(parentSelectorId)[0];
158
159
$(parentSelector).on('select2:select', setParentValue);
0 commit comments