FIX: ensures keyboard event is not propagated when using c shortcut (#9441)
This commit is contained in:
parent
ed6b3b82bd
commit
1168d5c70a
|
@ -283,11 +283,13 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
createTopic() {
|
||||
createTopic(event) {
|
||||
if (!(this.currentUser && this.currentUser.can_create_topic)) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
// If the page has a create-topic button, use it for context sensitive attributes like category
|
||||
let $createTopicButton = $("#create-topic");
|
||||
if ($createTopicButton.length) {
|
||||
|
|
Loading…
Reference in New Issue