Skip to content

click doesn't trigger <a {{action}}> #139

@jamesarosen

Description

@jamesarosen

I have a template:

<a {{action 'delete'}} data-test={{hook 'delete' id=thing.id}}>

and a test

import { click } from 'ember-native-dom-helpers'
...
await click(hook('delete', { id: thing.id }))

With that, the action never fires. If I change the template to

<a onclick={{action 'delete'}} data-test={{hook 'delete' id=thing.id}}>

everything works as expected.

If this is expected behavior, it would be nice to have it in the README. If it's unexpected, I may be able to create a reproduction to help solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions