krescruz / angular-materialize

Angularjs directives for Materialize CSS Framework https://github.com/Dogfalo/materialize
MIT License
397 stars 129 forks source link

Problem if I use atribute modal with tooltiped #190

Closed Frauches closed 7 years ago

Frauches commented 8 years ago

Use below template if reporting an error

Describe the error in 1 sentence

An error happens if a build something like an anchor or button using modal and tooltipped together

Steps to reproduce

In this case, if I am using modal and tooltipped together. It generates an error on browser's console.

For instance: <a class="btn-floating yellow darken-2 marginButton" tooltipped modal data-position="top" data-delay="50" data-tooltip="Editar"> mode_edit

What exactly is supposed to happen

...

What exactly does happens

The following error occurs on browser's console.

angular.min.js:118 Error: [$compile:multidir] http://errors.angularjs.org/1.5.8/$compile/multidir?p0=modal&p1=&p2=tooltip…ition%3D%22top%22%20data-delay%3D%2250%22%20data-tooltip%3D%22Editar%22%3E at Error (native)

webbiesdk commented 7 years ago

The problem was [insert technical description with link to documentation], but the tooltips directive didn't actually need its own scope, since it never uses it. So I removed it, and your use-case works now.