From 8a62d95c48f487751bf94a113e0e67e727ed43bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20de=20Ara=C3=BAjo=20Martinez=20Camarinha?= Date: Fri, 20 May 2022 11:06:34 -0300 Subject: [PATCH] Select all text upon focus on map search input for Google Maps On the map page, when we search a location and than want to search for another, we would have to delete letter by letter of the previous search text. Now, when we click on the search input to type another search text, the previous text will be all selected and we can remove everything with just hitting the backspace once --- .../javascripts/darkswarm/directives/map_search.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/darkswarm/directives/map_search.js.coffee b/app/assets/javascripts/darkswarm/directives/map_search.js.coffee index d885e18a79..0d36b87d2b 100644 --- a/app/assets/javascripts/darkswarm/directives/map_search.js.coffee +++ b/app/assets/javascripts/darkswarm/directives/map_search.js.coffee @@ -3,7 +3,7 @@ angular.module('Darkswarm').directive 'mapSearch', ($timeout, Search) -> restrict: 'E' require: ['^uiGmapGoogleMap', 'ngModel'] replace: true - template: '' + template: '' scope: {} controller: ($scope) ->