In my application i have a modal with a list and an input search field. The modal is invoked on button click in parent component which calls the public function inside the m