Skip to content

Commit

Permalink
Merge pull request #20 from timwis/set-style
Browse files Browse the repository at this point in the history
Remove popper-utils dependency
  • Loading branch information
hekigan authored Oct 16, 2017
2 parents 27fd473 + 2b0c627 commit 9c4043f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/directives/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Utils from 'popper.js/dist/popper-utils';
import Popper from 'popper.js';

const BASE_CLASS = 'h-tooltip';
Expand Down Expand Up @@ -82,7 +81,7 @@ export default class Tooltip {
let $popper = document.createElement('div');
$popper.setAttribute('id', `tooltip-${randomId()}`);
$popper.setAttribute('class', `${BASE_CLASS} ${this._options.class}`);
Utils.setStyles($popper, {display: 'none'});
$popper.style.display = 'none';

// make arrow
let $arrow = document.createElement('div');
Expand Down

0 comments on commit 9c4043f

Please sign in to comment.