R
R
Ruslan Ezhgurov2016-09-14 17:09:29
Angular
Ruslan Ezhgurov, 2016-09-14 17:09:29

What's wrong with the element?

This design: button(ng-click=function1) > div > span (ng-click=function2)
In Google Chrome, ie, safari works fine, if you click in the span, it will work function1, then function2
When I run it in mozilla, then when click in span works only function1
For those who are not understanding:

<button class="btn" ng-click="switch(el.id)">
    <div class="tools">
        <span href="" class="edit" ng-click="edit(el)"></span>
        <span href="" class="delete" ng-click="delete(el)"></span>
    </div>
</button>

How can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2016-09-14
@asdz

You cannot put the tags you used inside the button, replace the button with something else or make it differently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question