Skip to content

Commit

Permalink
fix: respect maxcount for array facet on mouse click
Browse files Browse the repository at this point in the history
  • Loading branch information
mpneuried committed Jan 27, 2017
1 parent c53e5a7 commit 8d66742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _src/js/views/facets/subarray.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class FacetSubArray extends require( "../selector" )
select: =>
if @loading
return

if @_isFull()
return

_vals = @model.get( "value" )
if _vals? and not _.isArray( _vals )
Expand Down
4 changes: 4 additions & 0 deletions _src/js/views/selector.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ class SelectorView extends require( "./facets/base" )
return

selected: ( mdl )=>
if not @main? and @_isFull()
_id = @result.last()?.id
@rmRes( _id )

try
if mdl.onlyExec?
mdl?.exec?()
Expand Down

0 comments on commit 8d66742

Please sign in to comment.