From 444c48196b41093b1d879167ea3a67de2a896cca Mon Sep 17 00:00:00 2001 From: MrFrankel Date: Tue, 18 Jul 2017 20:59:46 +0300 Subject: [PATCH] fix tooltip initial position issue --- README.md | 3 +++ package.json | 2 +- src/popper-content.ts | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c0949d..516472f 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/package.json b/package.json index 9f8dd25..66c17e7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/popper-content.ts b/src/popper-content.ts index d2262a7..9440f95 100644 --- a/src/popper-content.ts +++ b/src/popper-content.ts @@ -220,7 +220,9 @@ export class PopperContent implements OnDestroy { popperOptions, ); (this.popperInstance as any).enableEventListeners(); + this.scheduleUpdate(); this.toggleVisibility(true); + } update(): void { @@ -232,6 +234,7 @@ export class PopperContent implements OnDestroy { } hide(): void { + this.popperInstance.destroy(); this.toggleVisibility(false); this.onHidden.emit(); }