@@ -41,17 +41,6 @@ export class ReportControlEditor extends BaseElementEditor {
4141 'md-checkbox' : MdCheckbox ,
4242 } ;
4343
44- @property ( { type : String } ) searchValue = '' ;
45-
46- private handleSearchChange = ( event : CustomEvent ) => {
47- this . dispatchEvent (
48- new CustomEvent ( 'search-change' , {
49- detail : event . detail ,
50- bubbles : true ,
51- } )
52- ) ;
53- } ;
54-
5544 @query ( '.selectionlist' ) selectionList ! : ActionList ;
5645
5746 @query ( '.change.scl.element' ) selectReportControlButton ! : MdOutlinedButton ;
@@ -62,6 +51,8 @@ export class ReportControlEditor extends BaseElementEditor {
6251 @query ( 'data-set-element-editor' )
6352 dataSetElementEditor ! : DataSetElementEditor ;
6453
54+ @property ( { type : String } ) searchValue = '' ;
55+
6556 /** Resets selected Report and its DataSet, if not existing in new doc
6657 update(props: Map<string | number | symbol, unknown>): void {
6758 super.update(props);
@@ -87,6 +78,13 @@ export class ReportControlEditor extends BaseElementEditor {
8778 }
8879 } */
8980
81+ updated ( changedProps : Map < string | number | symbol , unknown > ) {
82+ super . updated ?.( changedProps ) ;
83+ if ( changedProps . has ( 'searchValue' ) && this . selectionList ) {
84+ this . selectionList . searchValue = this . searchValue ;
85+ }
86+ }
87+
9088 private renderElementEditorContainer ( ) : TemplateResult {
9189 if ( this . selectCtrlBlock !== undefined )
9290 return html `<div class= "elementeditorcontainer" >
@@ -204,8 +202,6 @@ export class ReportControlEditor extends BaseElementEditor {
204202 filterable
205203 searchhelper = "Filter Repor tControl's"
206204 .items = ${ items }
207- .searchValue = ${ this . searchValue }
208- @search-change = ${ this . handleSearchChange }
209205 > </ action- lis t> ` ;
210206 }
211207
0 commit comments