akveo / akveo/nebular

Need ability to set fixed ID property for cdk-overlay-pane

Open
#3,051 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue type

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

* [ ] bug report
* [X] feature request

### Issue description

**Current behavior:**
Currently, the cdk-overlay-pane container has a dynamic ID ('#cdk-overlay-' + number of modals that have been opened). Each time a new modal is opened, the number is incremented (#cdk-overlay-1, #cdk-overlay-2 etc).

**Expected behavior:**
For testing purposes, to have the ability to set a fixed ID or to halt the ID counter. Since the modal is destroyed and removed from the DOM after it closes, maybe it wouldn't be a problem to use the same ID.

**Steps to reproduce:**

**Related code:**

### Other information:

**npm, node, OS, Browser**

**Angular, Nebular**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.