Ion-textarea inside an ion element that does not work on IONIC 2

I have an ionic text area inside an ionic element. It shows well, but when I click on the text box, it shows and hides the keyboard. And since the keyboard is hidden, I can’t put the text.

It looks like the onblur event was fired inmediatly after that, I touched the screen.

This is my code:

<ion-item>
    <ion-label stacked>Comment</ion-label>
    <ion-textarea [(ngModel)]="formData.comment" name="comment" placeholder="Put any comment..."></ion-textarea>
</ion-item> 

Any ideas?

+4
source share
1 answer

You often encounter such errors when using the ionic element in this way. I had the same thing with the inputs, until I just wrapped them in a div.

- , . , . , , , .. , , . , , ItemSliding.

- .

+4

Source: https://habr.com/ru/post/1667062/


All Articles