Commit ca171eed authored by Simon Knox's avatar Simon Knox

fix lints

parent 773da9b4
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
}, },
selectedId() { selectedId() {
return this.selected ? this.selected.id : null; return this.selected ? this.selected.id : null;
} },
}, },
watch: { watch: {
selected() { selected() {
...@@ -83,8 +83,8 @@ export default { ...@@ -83,8 +83,8 @@ export default {
id: undefined, id: undefined,
}; };
} }
this.board.assignee_id = user.id; this.board.assignee_id = assignee.id;
this.board.assignee = user; this.board.assignee = assignee;
}, },
}, },
mounted() { mounted() {
......
...@@ -393,6 +393,7 @@ import CreateLabelDropdown from './create_label'; ...@@ -393,6 +393,7 @@ import CreateLabelDropdown from './create_label';
.catch(fadeOutLoader); .catch(fadeOutLoader);
} }
else if (handleClick) { else if (handleClick) {
e.preventDefault();
handleClick(label); handleClick(label);
} }
else { else {
......
...@@ -174,6 +174,7 @@ import _ from 'underscore'; ...@@ -174,6 +174,7 @@ import _ from 'underscore';
if (!selected) return; if (!selected) return;
if (options.handleClick) { if (options.handleClick) {
e.preventDefault();
options.handleClick(selected); options.handleClick(selected);
return; return;
} }
......
...@@ -445,6 +445,7 @@ function UsersSelect(currentUser, els, options = {}) { ...@@ -445,6 +445,7 @@ function UsersSelect(currentUser, els, options = {}) {
if ($el.closest('.add-issues-modal').length) { if ($el.closest('.add-issues-modal').length) {
gl.issueBoards.ModalStore.store.filter[$dropdown.data('field-name')] = user.id; gl.issueBoards.ModalStore.store.filter[$dropdown.data('field-name')] = user.id;
} else if (handleClick) { } else if (handleClick) {
e.preventDefault();
handleClick(user, isMarking); handleClick(user, isMarking);
} else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) { } else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) {
return Issuable.filterResults($dropdown.closest('form')); return Issuable.filterResults($dropdown.closest('form'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment