Comments (4)
Hi jans-y !
Thank you, it really makes me happy people can use and enjoy the plugin I've made with fun ! :-)
There is some conceptual issues regarding life cycle with the plugin (by "issues" I mean "to improve"), and that's my top priority, hope I'm gonna have a time to refactor that this week-end !
Regarding your problem, by module you really mean that you're importing multiple @NgModule
in your app, and that some of those modules are them-self importing the plugin, right ?
In that case, that's an excellent question ! But, from my mind, multiple module means multiple instances so it makes sense. Why not just importing the plugin in your main module (main app), and use a service or something to decide to display the keyboard if it "exists", otherwise the default keyboard ?
from ion-digit-keyboard-v2.
Hi,
I am using lazy loading and that means that declaring in the app.module.ts is not enough.
I have solved the issue by creating shared module which exports keyboard module and it works without errors.
shared.module.ts
@NgModule({ imports: [ CommonModule, IonicModule ], declarations: [ IonDigitKeyboard ], exports: [ IonDigitKeyboard ] //CommonModule }) export class SharedModule { }
I don't know if it is correct solution but it works.
Only problem that I am experiencing is the issue where clicking button on the another page triggers undefined even after page before was unloaded and keyboard destroyed by your method.
from ion-digit-keyboard-v2.
from ion-digit-keyboard-v2.
Sorry that I wasn't clear.
I have implemented ion-digit-keyboard element in the app.html.
On the particular pages, I have subscribed for the onHide and onClick event.
When browsing between pages, scrollToTop() inside onHide subscribe function breaks.
(http://ionicframework.com/docs/api/components/content/Content/#scrollToTop)
That's also true for onClick. Subscriber from the closed page continues to function even after closing that page.
Thank you very much for your work!
Ionic: 3.2.1
from ion-digit-keyboard-v2.
Related Issues (20)
- Icons are not displayed HOT 6
- Publish to npm as ionic-digit-keyboard HOT 1
- iphone5 change dom value seems slow HOT 12
- Keypad overlaps (hides) input fields when the keyboard is visible
- Cannot find module '@ionic/app-scripts'
- ion-digit-keyboard is not working in Desktop(Windows surface device) HOT 2
- scroll page not working when keyboard open
- Google Analytics is loaded (Security issue & Performance)
- Feature Request (Keyboard Support For Web)
- Error NO_ERRORS_SCHEMA HOT 1
- Change keyboard design
- Bottom buttons HOT 7
- Ionic 4 / Angular 7 HOT 7
- How to switch between numbers keypad to alphabets keypad HOT 12
- how to input alphabets also HOT 1
- npm package
- How to insert decimal operator using this keyboard
- please ionic5 update HOT 2
- Left- and RightButton Icon doesn't show up HOT 1
- Landscape-Mode Size
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ion-digit-keyboard-v2.