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.

V2. Displacement of elements bug on Safari

See original GitHub issue

Expected Behavior

Button should be clickable on the button

Actual Behavior

Button is not clickable on the button (but on displaced location)

URL, screen shot, or Codepen exhibiting the issue

screen shot 2018-09-10 at 3 58 19 pm screen shot 2018-09-10 at 3 58 03 pm screen shot 2018-09-10 at 3 58 42 pm screen shot 2018-09-10 at 3 59 03 pm

play around in different screen resolution v2.grommet.io/play

/**
* Welcome to the Grommet playground!
* This is the hello world example. There are more examples available
* in the top right header, so feel free to explore all of it.
* Grommet components can be accessed by their direct name, e.g.:
* Box, Button, ...
* Icons are available inside Icons variable: Icons.Add, for example.
*
* About this hello world example:
*
* It simulates a form (no real action). It adds a Header, Body, and Footer.
* The body scrolls independently. Header and Footer are sticky.
* See overflow='auto' in the Box for the Body component.
*
* Don't forget to checkout the Theme playground, where we demonstrate how to
* customize the Grommet theme to match your brand.
*
* Have fun :)
**/

const ConfirmationLayer = ({ onClose }) => (
  <Layer position='center' onClickOutside={onClose}>
    <Box pad='large' gap='medium'>
      <Text>Are you sure?</Text>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
      <Box direction='row' gap='medium' align='center'>
        <Button label='Yes' onClick={onClose} />
        <Button label='No' primary={true} onClick={onClose} />
      </Box>
    </Box>
  </Layer>
);

class Body extends React.Component {
  constructor() {
    this.state = {}
  }
  render () {
    const { layerType } = this.state;
    let layer;
    if (layerType === 'Confirmation') {
      layer = <ConfirmationLayer onClose={() => this.setState({ layerType: undefined })} />;
    }

    return (
      <Box flex={true} pad='medium' overflow='auto'>
        <Box margin='small'>
          <Button
            label={'Confirmation'}
            onClick={() => this.setState({
              layerType: (layerType === 'Confirmation' ? undefined : 'Confirmation'),
            })}
          />
        </Box>
        {layer}
      </Box>
    );
  }
}

const App = () => (
  <Grommet theme={Themes.grommet} full={true}>
    <Box fill={true}>
      <Body />
    </Box>
  </Grommet>
);

render(<App />);

Steps to Reproduce

Your Environment

  • Grommet version: V2
  • Browser Name and version: latest Safari
  • Operating System and version (desktop or mobile): desktop

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alansouzaticommented, Oct 11, 2018

I’m not able to reproduce this issue with safari Version 12.0 (13606.2.11).

I’m going to close this issue since I believe there is nothing to change on our end with regards to that.

We can reopen if we are able to reproduce it.

1reaction
alansouzaticommented, Oct 9, 2018

let me try to reproduce this on my end

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari bug :first-child doesn't update display:block when items ...
This appears to be a problem with display: none and objects removed from the document tree which manifests itself when you use :first-child ......
Read more >
Rendering bug and element flickering in Safari 15.4.1
A workaround is that we set "transformation: translateZ(0)" at the lowest level. This stops the flickering of the elements, but the repainting of...
Read more >
[Solved]-<input type="submit"> padding bug on Safari mobile?
Padding on input element not working as expected on mobile safari (iphone) ... score:2. I ran into this bug today when my mom...
Read more >
A Deep Dive Into The Wonderful World Of SVG Displacement ...
Displacement filtering is an important tool in VFX, and most likely you ... there's another bug in WebKit that leaves any element that...
Read more >
7 of the Biggest Mac Annoyances & How to Fix Them | OSXDaily
That is a good example on how a bug has been transported from Mac Os Version to the next. I didn't notice it...
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