Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.21k stars 4.05k forks source link

Popup not Repositioning when Trigger Changes Position Due to Transition of Another Element #4461

Open selcouthlyBlue opened 8 months ago

selcouthlyBlue commented 8 months ago

Bug Report

Steps

In the code sandbox, do the following steps to reproduce the issue:

  1. Scroll down
  2. Click the "Collapse" button

Expected Result

The open popup should follow the trigger when the other column is hidden which causes the trigger's position to change

Actual Result

The open popup does not follow the trigger's new position and stays where it was before collapsing

Version

3.0.0-beta

Testcase

https://codesandbox.io/p/sandbox/semantic-ui-example-mrdt8f

welcome[bot] commented 8 months ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

joequery commented 8 months ago

I see the issue as well. An interesting observation for me is that the tooltip will relocate properly after scrolling.

selcouthlyBlue commented 8 months ago

I see the issue as well. An interesting observation for me is that the tooltip will relocate properly after scrolling.

I noticed that too. However, I'd want to not have the user to do that.