ember-freestyle icon indicating copy to clipboard operation
ember-freestyle copied to clipboard

Menu doesn't clear between different freestyle-guides

Open drouhard opened this issue 6 years ago • 0 comments

Each freestyle-section (and subsection) calls registerSection, adding it to the service's list of menu items. But if you have multiple freestyle guides, the menu items persist between guides.

I'm not sure what the right solution is, but one way to fix this is to reset the service's menu property in the freestyle-guide's willDestroyElement hook.

drouhard avatar Feb 05 '19 00:02 drouhard