Commit 05ca553b authored by Alfredo Sumaran's avatar Alfredo Sumaran

Improve selector to get dropdown related input

parent 09f639e8
......@@ -139,7 +139,7 @@
role: 'access_level',
user: 'user_id',
};
let $input = this.$wrap.find(`input[name$="[${typeToName[selectedItem.type]}]"][value="${selectedItem.id}"]`);
let $input = this.$wrap.find(`input[data-type][value="${selectedItem.id}"]`);
if ($input.length) {
// If input exists return actual name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment