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

View not working with ion-input directive [Ionic] #168

Open
XavG opened this issue Sep 2, 2020 · 7 comments
Open

View not working with ion-input directive [Ionic] #168

XavG opened this issue Sep 2, 2020 · 7 comments

Comments

@XavG
Copy link

XavG commented Sep 2, 2020

Hi,

The module is easy to install and import in a Ionic/Angular Project, but as the directive is an and not simply a the view didn't work.
A popup appear to the screen but it is empty and it stay forever (see picture)

image

Angular : 8.1.3
Ionic: 5.4.13
Angular Mention: 1.2.0

As soon as I replaced the directive into an it works.

20200902_114529

Can you / Will you adapt this module to Ionic ?

Thanks

@dmacfarlane
Copy link
Owner

Can you clarify what you changed to make this work with Ionic?

@XavG
Copy link
Author

XavG commented Sep 2, 2020

You just replace the directive like that

Basically, change <ion-input></ion-input> by <input/>

WORKING:

<ion-col size="10" class="input-col">
   <input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"/>
</ion-col>

NOT WORKING:

<ion-col` size="10" class="input-col">
   <ion-input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"></ion-input
</ion-col>

So I just DON'T use the Ionic directive. But I really need to use Ionic directive because some other features depend on it.

@XavG
Copy link
Author

XavG commented Sep 10, 2020

+1

1 similar comment
@JoaquimDmt
Copy link

+1

@JoaquimDmt
Copy link

it's correctly showing to me the list of user but when I click on a user in the list it doesn't write it.

@GhoshWorld
Copy link

GhoshWorld commented Apr 15, 2021

You just replace the directive like that

Basically, change <ion-input></ion-input> by <input/>

WORKING:

<ion-col size="10" class="input-col">
   <input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"/>
</ion-col>

NOT WORKING:

<ion-col` size="10" class="input-col">
   <ion-input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"></ion-input
</ion-col>

So I just DON'T use the Ionic directive. But I really need to use Ionic directive because some other features depend on it.

I use both of this but not work for me and no error show. Please share full code with ts file. @dmacfarlane @XavG

@GhoshWorld
Copy link

You just replace the directive like that
Basically, change <ion-input></ion-input> by <input/>
WORKING:

<ion-col size="10" class="input-col">
   <input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"/>
</ion-col>

NOT WORKING:

<ion-col` size="10" class="input-col">
   <ion-input [mention]="hashtags" [mentionConfig]="{triggerChar:'#',maxItems:10,dropUp: true}" autocomplete="true" spellcheck="true" [(ngModel)]="newComment" type="text" placeholder="Entrez votre message" name="message"></ion-input
</ion-col>

So I just DON'T use the Ionic directive. But I really need to use Ionic directive because some other features depend on it.

I use both of this but not work for me and no error show. Please share full code with ts file. @dmacfarlane @XavG

My Issue was solved. I forget about declare component file in app module. Now its work perfectly.

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

4 participants