silverstripe-scienceninjas/silverstripe-cms — comment on commit 7ad9eff0d01173cd557f10cfb25ae44e71c13a73
File: javascript/AssetAdmin.js line 64
By stojg:

I just thought about using data attribute on the filterfield form so the javascript should be able to pick up the correct gridfield from that.

$form = new Form($this, 'filter', $fields, $actions);
$form->setAttribute('data-gridfield', 'File');
$form->addExtraClass('cms-filter-form');

Would this be a better solution?