Skip to content
Snippets Groups Projects
Unverified Commit 3c053f30 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix subfolder click event propagation

This prevents unintended loading of the parent folder if a subfolder
is clicked because the event is now only handled one.

Fixes https://github.com/nextcloud/mail/issues/613



Signed-off-by: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent 63403e49
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,10 @@ define(function(require) {
},
loadFolder: function(e) {
if (e.isDefaultPrevented()) {
// Event has been handled already, e.g. by a subfolder
return;
}
e.preventDefault();
// TODO: account should be property of folder
var account = require('state').accounts.get(this.model.get('accountId'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment