Question: I'm trying to make a regex to identify a comment. It has to start with // and end with a new line or a \*) pattern.

Answer: 
Set `closeOnSelect` to `false`

```
<ng-select [items]="items"
   bindLabel="name"
   bindValue="id"
   [multiple]="true"
   [closeOnSelect]="false"
   placeholder="Select categories"
   [(ngModel)]="selectedCategories">
</ng-select>

```
Try using the `isOpen` property:

```
<ng-select [items]="items"
       [isOpen]="true" // <--- This one
       bindLabel="name"
       bindValue="id"
       [multiple]="true"
       placeholder="Select categories"
        [(ngModel)]="selectedCategories">
</ng-select>

```