Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when pressing an ion-icons with the property tooltips #35

Open
leo4444 opened this issue Feb 27, 2018 · 1 comment
Open

Error when pressing an ion-icons with the property tooltips #35

leo4444 opened this issue Feb 27, 2018 · 1 comment
Labels

Comments

@leo4444
Copy link

leo4444 commented Feb 27, 2018

I have a box that shows information with icons and numbers. When pressing any icon I want to show a legend that indicates that it represents that icon and associated value ... Everything works perfect, when pressing an icon the legend is displayed as expected and it respects the configurations of the established tooltips, but with each click returns an error by console ...

The error is as follows:
"TypeError: undefined is not a function
    at WebAnimationsPlayer.play (file: ///android_asset/www/build/vendor.js: 137345: 24)
    at TransitionAnimationPlayer.play (file: ///android_asset/www/build/vendor.js: 136663: 48)
    at file: ///android_asset/www/build/vendor.js: 136293: 20
    at Array.forEach (native)
    at TransitionAnimationEngine._flushAnimations (file: ///android_asset/www/build/vendor.js: 136286: 21)
    at TransitionAnimationEngine.flush (file: ///android_asset/www/build/vendor.js: 135945: 32)
    at InjectableAnimationEngine.AnimationEngine.flush (file: ///android_asset/www/build/vendor.js: 137150: 32)
    at file: ///android_asset/www/build/vendor.js: 130958: 30
    at t.invoke (file: ///android_asset/www/build/polyfills.js: 3: 14976)
    at r.run (file: ///android_asset/www/build/polyfills.js: 3: 10143) "

A segment of my HTML:

  <div padding class = "board-content" * ngIf = "service! = null">
    
    


      


        <ion-icon
          class = "element-style"
          name = "man"
          tooltip = "My Tooltip"
          positionV = "bottom"
          arrow = "true"
          duration = 5000
          event = "click">
        </ ion-icon>
      </ p>
      

{{service.currentStatus.count}} </ p>
      

| </ p>
    </ div>
  </ div>
</ ion-content>

I tried putting the tooltip with [] but I got the same result ...
I have a lazyLoad implemented and I load the TooltipsModule in the same module.
I have the BrowserAnimationsModule in the App.module imported as well.

I guess that since this is working anyway, the TooltipsModule would not be the problem, it might be that I have an error in my html or a problem in loading the BrowserAnimationsModule ...

My dependencies in package.json are:
 "dependencies": {
    "@ angular / animations": "5.0.3",
    "@ angular / common": "^ 5.0.3",
    "@ angular / compiler": "5.0.3",
    "@ angular / compiler-cli": "5.0.3",
    "@ angular / core": "5.0.3",
    "@ angular / forms": "5.0.3",
    "@ angular / http": "5.0.3",
    "@ angular / platform-browser": "5.0.3",
    "@ angular / platform-browser-dynamic": "5.0.3",
    "@ ionic-native / core": "^ 4.5.2",
    "@ ionic-native / native-storage": "^ 4.5.2",
    "@ ionic-native / splash-screen": "^ 4.4.0",
    "@ ionic-native / status-bar": "4.4.0",
    "@ ionic / storage": "^ 2.1.3",
    "@ ngx-translate / core": "^ 9.0.2",
    "@ ngx-translate / http-loader": "^ 2.0.1",
    "chart.js": "^ 2.7.1",
    "cordova-android": "6.3.0",
    "cordova-plugin-device": "^ 1.1.7",
    "cordova-plugin-ionic-webview": "^ 1.1.16",
    "cordova-plugin-nativestorage": "^ 2.2.2",
    "cordova-plugin-splashscreen": "^ 4.1.0",
    "cordova-plugin-statusbar": "^ 2.4.1",
    "cordova-plugin-whitelist": "^ 1.3.3",
    "gradle": "^ 1.0.9",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^ 2.2.1",
    "ionic-tooltips": "^ 2.0.1",
    "ionicons": "3.0.0",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"

Thank you very much now and apologies for my English, which is very bad: P

@danielsogl danielsogl added the bug label Jul 26, 2018
@jrquick17
Copy link

This works fine up ionic4-tooltips. Added an example to the demo in this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants