Skip to content

Commit

Permalink
fix tooltip initial position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFrankel committed Jul 18, 2017
1 parent 8552b0e commit 444c481
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ngx-pipes
[![npm](https://img.shields.io/npm/v/ngx-pipes.svg?style=flat-square)](https://www.npmjs.com/package/ngx-pipes) [![Travis](https://img.shields.io/travis/danrevah/ngx-pipes.svg?style=flat-square)](https://travis-ci.org/danrevah/ngx-pipes) [![Coveralls](https://img.shields.io/coveralls/danrevah/ngx-pipes.svg?style=flat-square)](https://coveralls.io/github/danrevah/ngx-pipes?branch=master) [![npm](https://img.shields.io/npm/dm/ngx-pipes.svg?style=flat-square)](https://www.npmjs.com/package/ngx-pipes) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/danrevah/ngx-pipes/blob/master/LICENSE.md)

# ngx-popper

[![npm](https://img.shields.io/npm/v/ngx-popper.svg?style=flat-square)](https://www.npmjs.com/package/ngx-popper)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-popper",
"version": "0.0.82-beta.32",
"version": "0.1.2",
"description": "ngx-popper is an angular wrapper for popper.js",
"main": "src/index.js",
"module": "esm/index.js",
Expand Down
3 changes: 3 additions & 0 deletions src/popper-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ export class PopperContent implements OnDestroy {
popperOptions,
);
(this.popperInstance as any).enableEventListeners();
this.scheduleUpdate();
this.toggleVisibility(true);

}

update(): void {
Expand All @@ -232,6 +234,7 @@ export class PopperContent implements OnDestroy {
}

hide(): void {
this.popperInstance.destroy();
this.toggleVisibility(false);
this.onHidden.emit();
}
Expand Down

0 comments on commit 444c481

Please sign in to comment.