# Changelog

All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).

## [2.1.5]
- [#142](https://github.com/10up/component-library/pull/142)
    - Adds the parent menu ID to the submenu IDs to ensure unique IDs. This change prevents duplicate IDs.
## [2.1.4]
- [#107](https://github.com/10up/component-library/pull/107)
    - aria-expanded values updated based on the callbacks
## [2.1.3]
- [#92](https://github.com/10up/component-library/pull/92)
    - Add `$submenu` reference to `onSubmenuOpen()` and `onSubmenuClose()` callbacks

## [2.1.2]
- [#89](https://github.com/10up/component-library/pull/89)
    - Fix hover state opening subnavigation not working when the default nav is selected.
## [2.1.1]
- [#85](https://github.com/10up/component-library/pull/85)
    - Ensure class `site-menu-toggle` is on site menu toggle element.
    - Remove `role="navigation"` from navigation elements.
## [2.1.0]

- [#34](https://github.com/10up/component-library/pull/34) Introduces the `destroy` method which removes all event listeners and extra attributes added to the navigation.
- [#40](https://github.com/10up/component-library/pull/40) Adds `aria-expanded` to submenus.
