lucca-front icon indicating copy to clipboard operation
lucca-front copied to clipboard

[lu-department-select] Dropdown's direction the first time it is opened

Open bastienguillon opened this issue 3 years ago • 1 comments

The lu-department-select dropdown does not seem to be opened in the right direction the first time it is opened. Here is an example where the dropdown's direction is Down even though it should have been Up :

https://user-images.githubusercontent.com/8553617/165918259-8844c703-4802-4c71-ae1a-d9108fde4a3c.mp4

My guess is that the component does not know if the data which will be displayed will fit, so it chooses the Down direction by default

bastienguillon avatar Apr 29 '22 09:04 bastienguillon

It seems to be specific to the lu-department-select component, the lu-user-select has the right behavior for example:

image

bastienguillon avatar Apr 29 '22 09:04 bastienguillon

Tested recently and could not reproduce. I guess recent fix on luSelect fixed the issue : https://github.com/LuccaSA/lucca-front/pull/2764

https://github.com/LuccaSA/lucca-front/assets/25581936/ac089b85-3c4a-4605-b8a6-9aabb0f0eddf

jeremie-lucca avatar Jul 09 '24 10:07 jeremie-lucca