Task notes now disappear when they are deleted from the main task. Fix #11152 (#11167)

* Task notes now disappear when they are deleted from the main task.

* Html component changed back to Markdown. Markdown logic now accounts for if the value is an empty string.

* if-else statement to be sure that the markdown library doesn't create issues with empty strings.
This commit is contained in:
Matteo Pagliazzi 2019-05-20 11:46:44 +02:00 committed by GitHub
commit bcf304984d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,9 @@ export default function markdown (el, {value, oldValue}) {
if (value) {
el.innerHTML = habiticaMarkdown.render(String(value));
} else {
el.innerHTML = '';
}
el.classList.add('markdown');
}