client.js
function redirect(e) {
    if (e && e.preventDefault) e.preventDefault();

    //
    // Assume that the value in the $control_input is uptodate. If not get the
    // value directly through the constructor. When the selectize is still
    // loading results the `getValue()` will return an empty value. This is why
    // we do a double value check.
    //
    var selectize = select[0].selectize
      , value = selectize.$control_input.val() || selectize.getValue();

    if (!value) return;

    window.location = '/package/'+ value;
  }
function redirect(e) {
    if (e && e.preventDefault) e.preventDefault();

    //
    // Assume that the value in the $control_input is uptodate. If not get the
    // value directly through the constructor. When the selectize is still
    // loading results the `getValue()` will return an empty value. This is why
    // we do a double value check.
    //
    var selectize = select[0].selectize
      , value = selectize.$control_input.val() || selectize.getValue();

    if (!value) return;

    window.location = '/package/'+ value;
  }
function redirect ( e ) { if ( e && e . preventDefault ) e . preventDefault ( ) ; // // Assume that the value in the $control_input is uptodate. If not get the // value directly through the constructor. When the selectize is still // loading results the `getValue()` will return an empty value. This is why // we do a double value check. // var selectize = select [ 0 ] . selectize , value = selectize . $control_input . val ( ) || selectize . getValue ( ) ; if ( ! value ) return ; window . location = '/package/' + value ; }
Bypass the submit functionality and just redirect manually so we don't have
to do a server callback.

@param {Event} e Optional event
@api private
Bypass the submit functionality and just redirect manually so we don t have to do a server callback .