Skip to content

Events are not properly bound to SVG elements #17221

@ondrejsevcik

Description

@ondrejsevcik

Hi, I've found a small inconsistency when working with SVG and actions in Ember.

I've tried to bind action on mouseEnter on rect element but it doesn't work with ember action.

<rect onMouseEnter={{action "log"}}></rect>

With div, this works without any problem.

I’ve also tried to handle it with native javascript and that works.

<rect onmouseenter="javascript:alert('native works')"></rect>

Here's the twiddle with reproduction
https://ember-twiddle.com/d9db8b82d40cbc4fcfb4c33cff34ab4e?openFiles=templates.application.hbs%2C

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions