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

Cannot read property 'pauseOnHover' of undefined #177

Closed
alvinmactal opened this issue Jan 3, 2019 · 7 comments
Closed

Cannot read property 'pauseOnHover' of undefined #177

alvinmactal opened this issue Jan 3, 2019 · 7 comments

Comments

@alvinmactal
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

The error appear when hovering in the image modal

Expected behavior

There's no change in behavior i just recieved this error when opening a modal gallery

Minimal reproduction of the problem with instructions

I also encounter

My official live example on StackBlitz (based on https://stackblitz.com/edit/angular-modal-gallery-v5) is:

What is the motivation / use case for changing the behavior?

Environment (the most important section to fill very carefully)


- Node version:  v8.12.0
- npm version:  6.4.1
- Operating System and version:   Windows 
- Angular version: 6.1.10
- angular-cli version (or SystemJS/Webpack): 7.1.0
- I'm using Server Side Rendering with angular-universal: NO
- I'm compiling with mode: DEBUG / PROD / PROD with AOT



Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

Others:

@Ks89
Copy link
Owner

Ks89 commented Jan 3, 2019

That property is supported only in version 7.2.0.

You should use always the latest version of the library. Also the live example you linked is old. You must use version 7 as explained in official Readme.

I'll update github issue template to use version 7 and prevent future mistakes.

@Ks89
Copy link
Owner

Ks89 commented Jan 3, 2019

Ok template updated with a link to https://stackblitz.com/edit/angular-modal-gallery-v7

If you still have issues, feel free to comment here.

@Ks89 Ks89 closed this as completed Jan 3, 2019
@alvinmactal
Copy link
Author

alvinmactal commented Jan 3, 2019

I just checked, I'm using the latest version of the library.
and i also encounter this on the latest example https://stackblitz.com/edit/angular-modal-gallery-v7

@alvinmactal
Copy link
Author

I fixed it by adding the slide configuration. [slideConfig]="{playConfig: {autoPlay: true, interval: 5000, pauseOnHover: true}

@Ks89
Copy link
Owner

Ks89 commented Jan 3, 2019

You are right, this is a bug and it's happening in all examples except for E1 E2 E3 E4.
Thank u. I'll fixit today with a new release.

@alvinmactal
Copy link
Author

You're welcome. Thank you!

@Ks89
Copy link
Owner

Ks89 commented Jan 3, 2019

7.2.1 released

@Ks89 Ks89 closed this as completed Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants