                 $inputEl: @$searchEl
                 selectionCallback: selectAddress
 
-            # Focus on search-elem when #route-details has been opened
-            $('#route-details').on "shown", =>
-                @$searchEl.attr('tabindex', -1).focus()
+            # # TODO figure out why focus doesn't work
+            @$searchEl.focus()
 
         _locationNameAndLocking: (object) ->
             name: @model.getEndpointName object

            options.templates.empty = (ctx) -> jade.template 'typeahead-no-results', ctx
            @$searchEl.typeahead null, [options]

            @$searchEl.on 'keyup', (e) =>
                $('.tt-suggestion:first-child').trigger('click') if e.keyCode is 13

            selectAddress = (event, match) =>
                @commit = true
                switch $(event.currentTarget).attr 'data-endpoint'

            event.preventDefault()
            $('#route-details').toggleClass('settings-open')
            $('.bootstrap-datetimepicker-widget').hide()

    class TransportModeControlsView extends base.SMItemView
        template: 'transport-mode-controls'
