mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Card Details, Ctrl+Enter at description editing raised an error
Console: Uncaught TypeError: can't access property "click", this.find(...) is null
This commit is contained in:
parent
5f58ede7e3
commit
125c84b6b5
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ BlazeComponent.extendComponent({
|
|||
// Pressing Ctrl+Enter should submit the form
|
||||
'keydown form textarea'(evt) {
|
||||
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
||||
this.find('button[type=submit]').click();
|
||||
const submitButton = this.find('button[type=submit]');
|
||||
if (submitButton) {
|
||||
submitButton.click();
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue