ng-elastic icon indicating copy to clipboard operation
ng-elastic copied to clipboard

Text areas not expanding with using Lazy Loading in an Ionic app

Open Daniel-Jordan opened this issue 7 years ago • 3 comments

Hi

My Ionic app utilises Lazy Loading which seems to stop the text areas from expanding.

To test, create a new Ionic app, setup ng-elastic as per instructions and it works as expected.

Then setup lazy loading and the textarea no longer expands.

To setup lazy loading I:

  • deleted home page
  • re-added home page via cli
  • re-add textarea to home.html file
  • removed references to home page from app.module.ts
  • update the setting of root page in app.component.ts to be rootPage:any = HomePage;

Cheers Dan

Daniel-Jordan avatar May 19 '17 05:05 Daniel-Jordan

I have lazy loading of my pages and I'm not sure if that's the reason but it doesn't work for me either. I noticed that the problem is when I use ionic lab instead of ionic serve though. With ionic serve it works as expected, with ionic lab the input is just frozen

franciscotln avatar May 24 '17 20:05 franciscotln

It's working for me. Did you load the module in your app.module.ts and page.module.ts too?

HugoHeneault avatar Jul 20 '17 13:07 HugoHeneault

It's not working for me too. @HugoHeneault I got a runtime error after adding ElasticModule to my HomePage.module.ts Uncaught (in promise): Error: unexpected module 'ElasticModule' declared by the module 'HomePageModule'. Please add a @pipe/@directive/@component annotation.

tanjunior avatar Feb 11 '18 15:02 tanjunior