Skip to content

Commit

Permalink
Fixed multiple selects bug, added fallbackSelection support.
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-lindner-isw committed Apr 28, 2017
1 parent 431f021 commit 2ad8a53
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions isw-route-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@
}
}
}
}

if( match ) {
this.set( 'data', match.data );
this.selectIndex( match.index );
}
if( match ) {
this.set( 'data', match.data );
this.set( 'selected', this._indexToValue( match.index ) );
} else {
this.select( this.fallbackSelection );
}
}
}
Expand Down

0 comments on commit 2ad8a53

Please sign in to comment.