Skip to content

modal component -evt.preventDefault() & stopPropagation() interfering with <a href inside the modal #1

@vzR

Description

@vzR

Hello,

While following the course, I added an <a> tag with href='some_url', with the purpose of being able to go to that url upon clicking the button inside the modal;
The problem is that every click is met by the 'cancelClick()' function inside the component, which stops any event taking place; I'm not being taken to the link i want to go.
The only way this works is through a (click) event but it's not as clean.
Is there some easy work around for this?

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