Select text when clicking on popup input

This PR adds text selection when clicking on popup input. This will make it easier for mobile.