semantic-ui-calendar-react
semantic-ui-calendar-react copied to clipboard
Calendar popup jumps around
Describe the bug Calendar popup while opening jumps to top-left of browser windows and then back to field it triggered it. After expansion animation it settles mostly where it should be.
This is probably related to introduction of popper.js to semantic-ui-react 0.87
To Reproduce
- Go to https://codesandbox.io/s/semacticuireactcalendarpopup-hys52
- Click on form fields
- See error
Expected behavior A popup opening right to the field without jumping.
Dependencies versions
- semantic-ui-react 0.87.1
- semantic-ui-css 2.4.1
- semantic-ui-calendar-react 0.15.0
+1
I can confirm that rollback to semantic-ui-react 0.86.0 fixed the issue
Thank you, @vsubbotskyy Rolling back to 0.86 fixed for me
Has anyone found the root cause of this issue?
It is likely caused by this PR
Setting animation='none' fixes this.
The workaround does not work in TypeScript as it does not allow for animation='none'
1+ need this fix for typescript
1+ need this fix for typescript
animation={'none' as any}
for typescript, try
animation={null}
They should add 'off' or 'none' to the SemanticTRANSITIONS type so Typescript compiler doesn't shout warning and you could just simply use:
animation='off'
It seems that Popup component from semantic-ui-react doesn't work as expected.
See https://github.com/Semantic-Org/Semantic-UI-React/issues/3852