Skip to content

Commit 3ee0dcb

Browse files
IdirLISNObada Haddad
authored andcommitted
Edit participant ui bug fixed
1 parent f7ae33e commit 3ee0dcb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/static/riot/competitions/editor/_participation.tag

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,16 @@
205205
}
206206

207207
self.on('mount', () => {
208+
209+
const form = self.root.querySelector('form')
210+
if (form) {
211+
form.addEventListener('submit', function(e){
212+
e.preventDefault()
213+
e.stopPropagation()
214+
return false
215+
})
216+
}
217+
208218
let participants = parseJsonScriptElement('available-participants')
209219
if (!participants || !participants.length) {
210220
participants = parseJsonScriptElement('available-users')

0 commit comments

Comments
 (0)