Open I-keep-trying opened 3 years 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.
To reproduce:
Start with a basic CRA, do not eject.
Install semantic-ui-css and semantic-ui-react. My app has the following in addition to the default react packages:
Do not import any css other than
semantic-ui-css
.Add a Nav component:
Add footer:
Add a component that includes the following between header and footer - problem starts here:
Run the app, and open a browser on a mobile device - on an iPhone - using
local-IP:port
. I tested with my iPhone 11 max pro ios 14.4.1, both safari and chrome, and also tested a volunteer's android, I don't know what version. The android did not have any display issues.Expected Result
Mobile (ios) layout should not change after adding the Dropdown component.
Actual Result
Mobile layout changes from normal scroll behavior, which is not scrolling at all in any direction, to behaving as if the page size is much wider, scrolling horizontally a significant amount.
None of the other semantic-ui components cause this issue, as far as I can tell. I have used almost all of them, I think. I have another finished, published app that does not use the semantic-ui dropdown, and it renders nicely on ios.
Version
"semantic-ui-css": "^2.4.1", "semantic-ui-react": "^2.0.3"
Testcase
I don't think codepen would reproduce the issue on mobile. A side note, I had previously been using chrome devtools only, on desktop, to preview and check for responsiveness, but it did not display any rendering issues at any size.
I thoroughly inspected the rendered elements on desktop in devtools, looking for any small discrepancies in window or component size, margins, padding, etc., with and without the dropdown, but I could not find any.