akveo / akveo/ngx-admin

NbContextMenu is slow with many instances

Offen
#5,976 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
25.7k
Forks
7.9k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Issue type

**I'm submitting a ...** (check one with "x")

* [x] bug report
* [ ] feature request
* [ ] question about the decisions made in the repository

### Issue description

**Current behavior:**

I have a table of 150 lines. On each line there are 3 buttons, one of which has a context menu.
The context menu is slow to pop. And double clicking on some texts(SN selecting) is also slow. Especially on Firefox (Chrome is much better).

Reducing 150 lines to 50 lines, there will be no noticeable delay.

![image](https://user-images.githubusercontent.com/8407634/231497671-fd6fccd0-e4bd-44e3-b33e-95bde0ceca09.png)

```




```

### Workaround?

Is it because there are too many context menus? Can I create just one context menu programmatically and use it for all buttons? I assume this will boost performance?

### Other information:

**npm, node, OS, Browser**
```
node: v14.19.3
npm: 6.14.17
OS: Windows 11
Browser: Firefox
```

**Angular, Nebular**
```
Angular: 12.0.4
Nebular: 8.0.0
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.