question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LinkOverlay covering entire body on chrome in a Tr LinkBox on Chrome

See original GitHub issue

🐛 Bug report i want a table with rows that link on click. the following code snippet produces a link that covers the entire document body in Chrome, but not in Firefox:

import React from "react";
import { Table, Thead, Tr, Th, Td, Tbody, LinkBox, LinkOverlay } from "@chakra-ui/react";

export default function App() {
  return (
    <Table>
      <Thead>
        <Tr>
          <Th>Col</Th>
        </Tr>
      </Thead>
      <Tbody>
        <LinkBox as={Tr}>
          <Td>
            <LinkOverlay href="https://www.google.com">test</LinkOverlay>
          </Td>
        </LinkBox>
      </Tbody>
    </Table>
  );
}

CleanShot 2021-04-15 at 22 11 36

💥 Steps to reproduce add a <LinkBox as={Tr}> as your table rows and add a LinkOverlay

💻 Link to reproduction https://codesandbox.io/s/billowing-sky-myimc?file=/src/app.js

🧐 Expected behavior only the table row is clickable, not the entire page. note that this works fine on firefox

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
zebapycommented, May 2, 2022

I can’t get the transform hack to work in Safari. Is it supposed to, as mentioned above? Otherwise newer chrome and FF support position on tr okay.

3reactions
rusakoviccommented, May 12, 2022

Confirm. Not working on Safari

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChromeOverlay
This is a chrome extension that creates an overlay on every tab with a partially transparent .gif or image, or a .mp4 or...
Read more >
https://adguard.com/en/filter-rules.html?id=7
Note, that we only put rules that block full domains here and not URL parts (there's ... snrec.jp#$#body.tp-modal-open { overflow: visible!important; } ...
Read more >
User:Octagon89098/global.css - Meta-Wiki
Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac); Google Chrome: Press Ctrl-Shift-R ......
Read more >
frequent-classes - CodaLab Worksheets
... cancel 3553 response 3548 password 3545 chrome 3544 heart 3535 textfield ... pop 2690 contents 2683 triangle 2680 username 2662 tp 2652...
Read more >
Untitled
Kx 125 graphics monster, Body pump fitness first, Richard singer hand surgeon. ... Triple turbo 7.3, Google chrome extensions overview, Ride hailing, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found