Skip to content

Commit

Permalink
Merge pull request #124 from RiskChallenger/fix-modals-not-opening
Browse files Browse the repository at this point in the history
fix: use component selector as default
  • Loading branch information
NetanelBasal authored Jul 15, 2024
2 parents dbc371a + 3aee938 commit 9aa16f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/dialog/src/lib/dialog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
inject,
Injectable,
Injector,
reflectComponentType,
TemplateRef,
Type,
ViewRef,
Expand Down Expand Up @@ -60,7 +61,7 @@ export class DialogService {
const mergedConfig = this.mergeConfig(config);

if (isComponent(componentOrTemplate)) {
mergedConfig.id ??= componentOrTemplate.name;
mergedConfig.id ??= reflectComponentType(componentOrTemplate)?.selector;
}

if (this.isOpen(mergedConfig.id)) {
Expand Down

0 comments on commit 9aa16f6

Please sign in to comment.