Skip to content

Commit

Permalink
fix(sidebar): Delay closing until next runloop (#557)
Browse files Browse the repository at this point in the history
* fix(sidebar): Delay closing until next runloop

* chore: Bump package version
  • Loading branch information
TSenter authored Jan 19, 2024
1 parent d4b4585 commit 4f98df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion addon/components/nrg-sidebar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { action } from '@ember/object';
import { next } from '@ember/runloop';
import { inject as service } from '@ember/service';
import Component from '@glimmer/component';
import { AddNrgDeprecations } from 'ember-nrg-ui/utils/deprecation-handler';
Expand All @@ -23,6 +24,8 @@ export default class NrgSidebarComponent extends Component {

@action
onClickInternal() {
this.application.sidebarIsOpen = false;
next(() => {
this.application.sidebarIsOpen = false;
});
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-nrg-ui",
"version": "4.6.4",
"version": "4.6.5",
"description": "Opinionated UI addon based on how KUB scaffolds web applications",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit 4f98df5

Please sign in to comment.