Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

GalleryCard.Image target '_blank' doesn't work #517

Open
sergibc opened this issue May 17, 2020 · 1 comment
Open

GalleryCard.Image target '_blank' doesn't work #517

sergibc opened this issue May 17, 2020 · 1 comment

Comments

@sergibc
Copy link

sergibc commented May 17, 2020

Having the following:
<GalleryCard.Image src={imageFile} href="destionation_url" target="_blank" />

The "destination_url" is opened in the same page.

@dannypaz
Copy link

dannypaz commented Jun 23, 2020

@sergibc target needs to be added to the component https://github.com/tabler/tabler-react/blob/master/src/components/GalleryCard/GalleryCardImage.react.js

As a workaround, I have wrapped the GalleyCard in an <a> and removed styling of the <a> tag.

<a href={v} target="_blank">
  <GalleryCard className="w-1/5">
    <GalleryCard.Image src={v} />
  </GalleryCard>
</a>

Hope this helps

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

No branches or pull requests

2 participants