 
           a
             key: i
-            href: '#'
+            href: @href(option)
             className: cssClasses
             value: option.id
             'data-filter-value': option.id

  constructor: (props) ->
    super props

    @cache = {}




  cast: (value) =>
    BeatmapsetFilter.castFromString[@props.name]?(value) ? value ? null


  href: (option) =>
    i = @cast(option.id)
    newSelection =
      if @props.multiselect
        _(@currentSelection())[if @selected(i) then 'without' else 'concat'](i).sort().join('.')
      else
        if @selected(i) then @props.default else i

    osu.updateQueryString(null, "#{@char}": newSelection)


  select: (e) =>
