1

I'm using Dropdown menu from PrimeReact library. I have just noticed that when I press on input field windows pops up and looks as it normally should, picture below.enter image description here

But when I keep it open and scroll the screen window moves with the screen, which is strange and of course not wished behaviour.

enter image description here

This is how it's implemented

<Dropdown
                  name={`multisports.${index}.multisportType.cost`}
                  value={multisportType.cost}
                  options={sortedMultisportCost}
                  onChange={handleChange}
                  placeholder="Select cost"
                />

Can You please suggest how can I fix this bug ?

marcinb1986
  • 708
  • 1
  • 11
  • 30

1 Answers1

1

Issue reported here: https://github.com/primefaces/primereact/issues/2683

PR submitted to fix it: https://github.com/primefaces/primereact/pull/2757

Melloware
  • 10,435
  • 2
  • 32
  • 62
  • Hello. I checked links which You have provided but being honest I cannot figure out how can I implement this solution to my code. Above is the implementation of Dropdown. Can You please suggest how to fix it ? – marcinb1986 Sep 21 '22 at 20:19
  • You cannot implement it yourself unless you apply that patch and build a custom PrimeReact lib. – Melloware Sep 23 '22 at 21:30