Commit 41584897 authored by Janne Koschinski's avatar Janne Koschinski

Minor UI fix

parent 961035c4
......@@ -4,14 +4,6 @@ const keyListener = (event) => {
}
};
const changeListener = (event) => {
requestAnimationFrame(() => {
const element = event.target;
element.innerText = element.innerText.replace(/^\n$/, "");
})
};
function initFakeInput() {
Array.prototype.slice.call(document.querySelectorAll(".fake-input[contenteditable]:not([data-bound_fake_input])")).forEach(elem => {
elem.addEventListener("input", changeListener);
......
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