Skip to content

Capturing submit event causes problems #19

@ile

Description

@ile

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions