Strategy for the keyboard on mobile devices for searching in a AngularJS modal [on hold]

As you all know, in a web application if you have a search input and you tap on it, the device keyboard appears. This could create some problems in modals. For example, let's say we just click on a button and a modal with a multiselect inside appears. The multiselect, contains a search input THIS ONE). It may be that, therefore, the device keyboard covers the results. What strategy do you use if you are forced to use a modal?