I'd like to be able to pre-filter the listing of the "Add Panels" sidebar in one of my dashboards. I'm trying to do so by using a MutationObserver to inject in some JavaScript to the pane when the dialog is added to the page...
$('input[data-test-subj="savedObjectFinderSearchInput"]').val("Alert")
$('input[data-test-subj="savedObjectFinderSearchInput"]').keyup();
$('input[data-test-subj="savedObjectFinderSearchInput"]').change();
That works to set the input's value, but doesn't actually filter the panel. The same code can be used on the console /w the "Add Panels" sidebar shown. It seems as though neither the change nor keyup events trigger the search filter, but I'm unclear why; or how to actual trigger it.