We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2825ee commit 60074cfCopy full SHA for 60074cf
frontend/javascript/modules/majorProjectForm.js
@@ -23,8 +23,8 @@ export default class MajorProjectForm {
23
this.tags_written = true
24
document.getElementsByClassName("placeholder").item(0).remove()
25
}
26
- let txt = input.value.replace(/[^a-zA-Z0-9\+\-\.\#]/g, ''); // allowed characters list
27
- if (txt) input.before('<span class="skill-tag">' + txt + '</span>');
+ let txt = input.value.replace(/[^a-zA-Z0-9\+\-\.\# ]/g, ''); // allowed characters list
+ if (txt) input.insertAdjacentHTML("beforebegin", '<span class="skill-tag">' + txt + '</span>');
28
input.value = "";
29
input.focus();
30
0 commit comments