Skip to content

Commit

Permalink
fix(editor): Single/MultiSelect Editors misbehave w/Desc Sort, fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 11, 2018
1 parent 4961cab commit 71916dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class MultipleSelectEditor implements Editor {
this.defaultValue = item[this.columnDef.field].map((i: any) => i.toString());

this.$editorElm.find('option').each((i: number, $e: any) => {
if (this.defaultValue.indexOf($e.value) !== -1) {
if (this.defaultValue === $e.value) {
$e.selected = true;
} else {
$e.selected = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class SingleSelectEditor implements Editor {
this.defaultValue = item[this.columnDef.field].toString();

this.$editorElm.find('option').each((i: number, $e: any) => {
if (this.defaultValue.indexOf($e.value) !== -1) {
if (this.defaultValue === $e.value) {
$e.selected = true;
} else {
$e.selected = false;
Expand Down

0 comments on commit 71916dc

Please sign in to comment.