semantic-ui-calendar-react icon indicating copy to clipboard operation
semantic-ui-calendar-react copied to clipboard

Calendar popup jumps around

Open vnesek opened this issue 6 years ago • 12 comments

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

  1. Go to https://codesandbox.io/s/semacticuireactcalendarpopup-hys52
  2. Click on form fields
  3. 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

vnesek avatar May 21 '19 07:05 vnesek

+1

rosman21 avatar May 21 '19 17:05 rosman21

I can confirm that rollback to semantic-ui-react 0.86.0 fixed the issue

vsubbotskyy avatar May 21 '19 17:05 vsubbotskyy

Thank you, @vsubbotskyy Rolling back to 0.86 fixed for me

rosman21 avatar May 21 '19 18:05 rosman21

Has anyone found the root cause of this issue?

zheyujie avatar May 28 '19 09:05 zheyujie

It is likely caused by this PR

vsubbotskyy avatar May 28 '19 09:05 vsubbotskyy

Setting animation='none' fixes this.

Gomez23 avatar Jun 12 '19 09:06 Gomez23

The workaround does not work in TypeScript as it does not allow for animation='none'

loxs avatar Jun 21 '19 08:06 loxs

1+ need this fix for typescript

sprilukin avatar Jul 19 '19 07:07 sprilukin

1+ need this fix for typescript

animation={'none' as any}

yhnavein avatar Aug 20 '19 09:08 yhnavein

for typescript, try animation={null}

zheyujie avatar Sep 05 '19 22:09 zheyujie

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'

Cicko avatar Sep 19 '19 13:09 Cicko

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

jtraub avatar Feb 24 '20 09:02 jtraub