angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

error Cannot read property 'toLowerCase' of undefined in line 3124 when i use bspopover

Open Alirz opened this issue 12 years ago • 41 comments

Hi I am use bspopover with tamplate like your sample but when call tooltip module in line 3124 first time element[0] has an object but second time element = "popover"

Alirz avatar Jun 11 '14 05:06 Alirz

I am facing the same problem..

adibMosharrof avatar Jun 11 '14 06:06 adibMosharrof

i figured out i am using ui.bootstrap and angular-strap. ui.bootstrap has a directive with name "popover" and this directive called $tooltip then when i use popover of angular-strap thats call $tooltip twice. now you can delete popover directive on ui.bootstrap or u can change directive name . work for me

Alirz avatar Jun 11 '14 08:06 Alirz

Fixes #826

Alirz avatar Jun 11 '14 08:06 Alirz

I'm experimenting the same issue when using both angular-ui and angular-strap

The ethical problem is about touching legacy vendor code Maybe overriding the conflicted directive in user own code could be a reasonable solution...

h2non avatar Jul 28 '14 21:07 h2non

What I did is build angular-ui with the components that I need but I think it would be much better to rename the strap directives.

santimacia avatar Aug 21 '14 08:08 santimacia

+1

cwagner22 avatar Sep 12 '14 18:09 cwagner22

i have the same problem!

rollermy avatar Sep 22 '14 20:09 rollermy

I'm having similar problem: Unable to get property 'toLowerCase' of undefined or null reference at w (http://....../Scripts/angular-strap.min.js:8:52476). How to fix it. I installed angular strap for date picker.

bharathk16 avatar Sep 23 '14 15:09 bharathk16

You can specify which ui-bootstrap components you want (ie. 'ui.bootstrap.tabs') instead of the whole module ('ui.bootstrap')

mphuie avatar Oct 08 '14 21:10 mphuie

+1.

In the process of converting from ui.bootstrap to angular-strap and having a collision on the $tooltip provider being used by each. Need to use angular-strap popovers but the rest of the ui.bootstrap components for now so it would be helpful to resolve this.

Updating $tooltip to $bsTooltip fixes this. Should I submit a pull request?

richardm avatar Oct 17 '14 02:10 richardm

Hi @richardm ,

could you please provide a little more detail on the fix you applied? i'm having the same issue and would like to continue using both components.

cheers!

martinbutler avatar Nov 02 '14 06:11 martinbutler

From what I can tell, @richardm just edited the AngularStap source code and changed the $tooltip service name and all its references to $bsTooltip to avoid the name conflict.

vmlf01 avatar Nov 02 '14 09:11 vmlf01

@vmlf01 thank you!

martinbutler avatar Nov 03 '14 00:11 martinbutler

Having the same problem. I don't see the $tooltip is changed to $bsTooltip.

MilosStanic avatar Nov 03 '14 09:11 MilosStanic

Looking forward to this being fixed!

rollermy avatar Nov 10 '14 15:11 rollermy

@mgcrea Can you please answer this one?

vmlf01 avatar Nov 10 '14 17:11 vmlf01

in angular-strap.js ,find $tooltip and replace with $bstooltip or whatever . this error becuase of using angular-strap and ui-bootstrap library together

Alirz avatar Nov 11 '14 09:11 Alirz

+1 for renaming $tooltip to $bsTooltip.

Do we have an ETA on when to expect this change?

timcosta avatar Nov 12 '14 22:11 timcosta

There won't be a hard rename any time soon (breaking change), not until 3.0 at least. The idea is to leverage ngAnnotate to provide a compat build that could be used along UI.Bootstrap. The discussion lives in #521. Closing this one as a duplicate.

mgcrea avatar Nov 12 '14 23:11 mgcrea

+1 for renaming $tooltip to $bsTooltip. And it's working great.

bsigalov avatar May 28 '15 06:05 bsigalov