Explorar o código

Move the cursor to the end of the search input when searching from URL

Thibaut Courouble %!s(int64=9) %!d(string=hai) anos
pai
achega
0970a44533
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      assets/javascripts/views/search/search.coffee

+ 1 - 0
assets/javascripts/views/search/search.coffee

@@ -89,6 +89,7 @@ class app.views.Search extends app.View
 
     return unless value = @extractHashValue()
     @input.value = @value = value
+    @input.setSelectionRange(value.length, value.length)
     @search true
     true