adjust autocomplete behavior for sharing menu

To improve user experience and eliminate unnecessary server requests, we should adjust the settings of the autocomplete field.