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

fix(overlay-trigger): performance lag after repeat in loop #2837

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

evtkhvch
Copy link
Contributor

@evtkhvch evtkhvch commented Aug 19, 2021

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Closes #1467

  • reduce memory usage in NbClickTriggerStrategy and NbFocusTriggerStrategy

ISSUE: NbTriggerStrategyBase doesn't work as expected. It should fire hide$ when document is clicked.

@evtkhvch evtkhvch marked this pull request as ready for review August 20, 2021 10:58
@evtkhvch evtkhvch changed the title fix(overlay-trigger): fix click strategy fix(overlay-trigger): performance lag after repeat in loop Aug 26, 2021
@yarrysmod
Copy link

any updates on this PR?

@yggg yggg marked this pull request as draft November 30, 2021 11:02
@yggg yggg added this to the 9.1.0 milestone Nov 30, 2021
@EFritzsche90
Copy link

Some update on this? Performance within a loop is really hell. :D

@arpansac
Copy link

arpansac commented Apr 6, 2022

Anyone still working on this? We need it quite urgent 😃

switchMap(() => observableFromEvent<Event>(this.document, 'click')
.pipe(
takeWhile(() => !!this.container()),
filter(event => this.isNotOnHostOrContainer(event)),
Copy link

@arpansac arpansac Sep 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs typecasting event.target as Element

@arpansac
Copy link

arpansac commented Sep 8, 2022

Can we implement a wrapper library over Nebular and create our own overlay component to patch this? I'm thinking that this is the only way right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nbPopover perfomance lag after repeat in loop
5 participants