Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] @prizm-ui/components - DropdownHost закрывается сразу после открытия (flickering) #355

Closed
AleksandrSibiakov opened this issue May 26, 2023 · 1 comment
Assignees
Labels
source:idp issue from IDP state:ready ready for release (pass tested)
Milestone

Comments

@AleksandrSibiakov
Copy link
Contributor

AleksandrSibiakov commented May 26, 2023

image

image

Точно причина outside$$.next (по стек трейсу), так же если поставить closeOnOutsideClick=false то проблема уходит, но UX плохой.

Вижу, что один из соурсов this.inside$$.next - клик по хоста - он и вызывает заход в обработчик, но как видно из скриншота, время всплытия события до обработки document? (время до захода в обработчик) больше чем FPS!

Видимо, проблема в медленной обработке клика в рабочем приложении, поэтому не получается воспроизвести на demo или stackblitz...

Originally posted by @AleksandrSibiakov in #316 (comment)

@AleksandrSibiakov
Copy link
Contributor Author

В рамках бреда - почему бы просто не if (event.target.closest(hostElement) == null) this.outside$$.next(...) (make it work)

@irustm irustm added the source:idp issue from IDP label May 29, 2023
@ZurabDev ZurabDev self-assigned this May 30, 2023
@ZurabDev ZurabDev added the state:in_progress We work on this issue label May 30, 2023
@ZurabDev ZurabDev modified the milestones: next, 1.0.1 May 30, 2023
@ZurabDev ZurabDev added state:ready ready for release (pass tested) and removed state:in_progress We work on this issue labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source:idp issue from IDP state:ready ready for release (pass tested)
Projects
None yet
Development

No branches or pull requests

3 participants