-
Notifications
You must be signed in to change notification settings - Fork 357
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
Browser Refreshes when adding a Tag. #355
Comments
Have you added an ngModel? |
Which ngModel? I have the TagInputModule in my app.module. |
Can you paste here the html of you component in which you put tag-input? |
Hmm, I restarted my machine and it seems to work now 😕 . There is another problem now. I am using ng2-bs3-modal to pop up modals. When I insert the tag inside the modal code the tag drop down drops behind it: I've tried styling the to include different positions, z-index's etc..but not luck. Here is the the html code of the modal with the tag module embedded:
I put two of the tag-input components so I could show that the drop-down hides behind the modal in the lower left corner. Any thoughts on what might be causing this? Thanks! |
Try out [appendToBody]=false, check out the doc |
Hi, @Gbuomprisco I am using <tag-input formControlName="names"
[onlyFromAutocomplete]="true"
[showDropdownIfEmpty]="true"
[appendToBody]="false"> <!-- not working even if i add this here as mentioned in docs -->
<tag-input-dropdown [autocompleteObservable]="requestUsers"></tag-input-dropdown>
</tag-input> But if i modify css class like this, it works: .ng2-dropdown-menu {
z-index: 200000 !important;
} Is there someting that i am missing here? My bs-modal Thank you. |
appendToBody goes on the drop down |
@Gbuomprisco using What can be the reason? <div class="col-md-4">
<div class="form-group">
<tag-input formControlName="names"
[onlyFromAutocomplete]="true"
[showDropdownIfEmpty]="true"
[appendToBody]="false"> <!-- not working even if i add this here as mentioned in docs -->
<tag-input-dropdown [autocompleteObservable]="requestUsers"></tag-input-dropdown>
</tag-input>
</div>
</div> Demos in pnlkr could be very helpful in this case. Can you please add live demos to your docs? Thanks |
@gopalkumar315 I believe you can add your own template for tags and do the styling and condition. Have you checked the docs? |
I have also browser refresh issues even if I add |
I'm submitting a ... (check one with "x")
Current behavior
When adding a tag, it's adds a tag but then immediately refresher the browser page. I've preserved the console logs and here is the output:
What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
OSX 10.11.5, Visual Studio 1.11.2, NodeJS 7.8.0, NPM 4.5.0, "concurrently": "~3.0.0", "lite-server": "~2.2.2", BrowserSync 2.18.8, "systemjs": "~0.20.12".
Angular version:
4.0.2
ng2-tag-input version:
1.0.5
Browser:
Chrome Version 57.0.2987.133 (64-bit)
The text was updated successfully, but these errors were encountered: