Skip to content

Commit

Permalink
PopoverRef.close will destroy popover component
Browse files Browse the repository at this point in the history
  • Loading branch information
EverettSummer committed Aug 18, 2024
1 parent b84ee29 commit 1d47c6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deneb-ui",
"version": "4.1.2",
"version": "4.2.0",
"scripts": {
"ng": "ng",
"start": "ng serve --project Deneb-UI-Demo",
Expand Down
2 changes: 1 addition & 1 deletion projects/irohalab/deneb-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@irohalab/deneb-ui",
"version": "4.1.2",
"version": "4.2.0",
"description": "Building blocks for mira-ui",
"author": "Everett Summer",
"license": "Apache-2.0",
Expand Down
7 changes: 1 addition & 6 deletions projects/irohalab/deneb-ui/src/popover/popover-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ export class UIPopoverRef<T> {
this._appRef.attachView(componentRef.hostView);
this._popper = new Popper(refElement, componentElement, {
placement: this.placement
// onCreate: (data) => {
// console.log('onCreate', data);
// },
// onUpdate: (data) => {
// console.log('onUpdate', data);
// }
});
this._disposeCallback = () => {
this._appRef.detachView(componentRef.hostView);
componentRef.destroy();
};
}

Expand Down

0 comments on commit 1d47c6a

Please sign in to comment.