Is this correct? 1991e5e#diff-25e28db7db17846a020f06c1531ab452R235
document.addEventListener('submit', onSubmit, true)
This default onSubmit kicks in first, before my handler, and does history.push which then changes the url before I do my stuff in the handler. Thus, preventDefault() does not have any effect (among other things).
Changing back to earlier would make it work more like expected? As:
document.addEventListener('submit', onSubmit, false)