Skip to content

Commit

Permalink
fix(dialog): set dialogClose for any elements
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Jan 8, 2025
1 parent 8c653eb commit c341a9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/primitives/dialog/src/dialog-close.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { Directive, inject } from '@angular/core';
import { RdxDialogRef } from './dialog-ref';

@Directive({
selector: 'button[rdxDialogClose]',
selector: '[rdxDialogClose]',
standalone: true,
host: {
type: 'button',
'(click)': 'onClick()'
}
})
Expand Down

0 comments on commit c341a9b

Please sign in to comment.