diff --git a/src/components/list_edit/list_edit.js b/src/components/list_edit/list_edit.js index 0e03dbcb..c3869885 100644 --- a/src/components/list_edit/list_edit.js +++ b/src/components/list_edit/list_edit.js @@ -57,15 +57,16 @@ const ListNew = { onInput () { this.search(this.query) }, - selectUser (user, event) { + selectUser (user) { if (this.selectedUserIds.includes(user.id)) { this.removeUser(user.id) - event.target.classList.remove('selected') } else { this.addUser(user) - event.target.classList.add('selected') } }, + isSelected (user) { + return this.selectedUserIds.includes(user.id) + }, addUser (user) { this.selectedUserIds.push(user.id) }, diff --git a/src/components/list_edit/list_edit.vue b/src/components/list_edit/list_edit.vue index cadd25da..5d0cc2d5 100644 --- a/src/components/list_edit/list_edit.vue +++ b/src/components/list_edit/list_edit.vue @@ -41,9 +41,11 @@ :key="user.id" class="member" > -