Skip to content

Wrong shepherd modal placement within Angular Material Dialogs #2342

Open
@atinary-ndefago

Description

@atinary-ndefago

Hello,

I am having an issue using Angular Material Dialogs:

image

As you can see the Shepherd modal is not attached to the highlighted button

Here's the step code:

      attachTo: {
          element: '#start-campaign',
          on: 'right',
      },

This is the only element in my page with this id (start-campaign):
image

I am using "angular-shepherd": "^17.0.0", I also tried to override the shepherd.js version to the latest ("shepherd.js": "^11.2.0",) but that did not help

The weird thing is, it works for all the other Material Dialogs I am using

As of now, I fixed it using a custom classes in my step and with a margin-top: 80px

Just wanted to let you know, if you have any idea of how I could fix this or why this is happening ? that would be much appreciated!
thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions