1
0
Эх сурвалжийг харах

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

Thibaut Courouble 9 жил өмнө
parent
commit
0970a44533

+ 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