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

Popover is not showing in highlighting element with vuejs #113

Closed
junip opened this issue Jun 30, 2018 · 6 comments
Closed

Popover is not showing in highlighting element with vuejs #113

junip opened this issue Jun 30, 2018 · 6 comments

Comments

@junip
Copy link

junip commented Jun 30, 2018

I am using it with vue.js, the element is highlighted but popover is not shown
help me out maybe I am missing something

import * as Driver from 'driver.js';
import 'driver.js/dist/driver.min.css';

screenshot from 2018-07-01 01-32-42

@kamranahmedse
Copy link
Owner

Could you please provide a plunkr?

@junip
Copy link
Author

junip commented Jul 1, 2018

Please check it
plunker link

@ericgruby01
Copy link

Try:

startTour() {
  Vue.nextTick(function() {
    const driver = new Driver();
    driver.highlight({
      element: '#dashboard12',
      popover: {
        title: 'Title',
        description: 'Desc',
        position: 'right',
      }
    });
  });
}

This worked for me.

Reference: #Vue-nextTick.

@raphael22
Copy link
Contributor

Same with angular.
This is not related to driverjs.
You will need wrapper for every Framework with their own Lifecycle.

@junip
Copy link
Author

junip commented Jul 7, 2018

@ericgruby01 it is not working I have used Vue.nextTick()

@kamranahmedse
Copy link
Owner

@Junip551 you need to stop event propagation on click. Replace your button with below

<button v-on:click.stop="start()">Click Here</button>

Here is the modified plunkr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants