-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fix option lazyLoad: false #154
Conversation
when option lazyLoad = false
before initalizing the componet internals
so that essentially removes the |
No, it doesn't. The lazyLoading is done here now: https://github.com/qonto/ember-phone-input/blob/v3.1.0/addon/services/phone-input.js#L14 |
You mean: with that PR, the script would always be loaded? The answer to that question is: yes. With the lazyLoad option set to false, users load the script in the init hook of the phoneInput service (meaning at app boot). Note that previously it was loaded from If they specify |
- remove redundant script loading - rename a test (name was duplicated)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Turbo87 do you have time to review it? If not, I will merge it to release the fix. |
Description
After #151, option
lazyLoad: false
is broken.Changes