File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file, per [ the Keep a Changelog standard] ( http://keepachangelog.com/ ) .
4
4
5
+ ## [ 2.1.3]
6
+ - [ #92 ] ( https://github.com/10up/component-library/pull/92 )
7
+ - Add ` $submenu ` reference to ` onSubmenuOpen() ` and ` onSubmenuClose() ` callbacks
8
+
5
9
## [ 2.1.2]
6
10
- [ #89 ] ( https://github.com/10up/component-library/pull/89 )
7
11
- Fix hover state opening subnavigation not working when the default nav is selected.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @10up/component-navigation" ,
3
- "version" : " 2.1.2 " ,
3
+ "version" : " 2.1.3 " ,
4
4
"author" : " 10up" ,
5
5
"description" : " Accessible navigation component." ,
6
6
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ export default class Navigation {
305
305
* @callback onSubmenuOpen - optional.
306
306
*/
307
307
if ( this . settings . onSubmenuOpen && typeof this . settings . onSubmenuOpen === 'function' ) {
308
- this . settings . onSubmenuOpen . call ( ) ;
308
+ this . settings . onSubmenuOpen . call ( this , $submenu ) ;
309
309
}
310
310
}
311
311
@@ -337,7 +337,7 @@ export default class Navigation {
337
337
* @callback onSubmenuClose - optional.
338
338
*/
339
339
if ( this . settings . onSubmenuClose && typeof this . settings . onSubmenuClose === 'function' ) {
340
- this . settings . onSubmenuClose . call ( ) ;
340
+ this . settings . onSubmenuClose . call ( this , $submenu ) ;
341
341
}
342
342
}
343
343
You can’t perform that action at this time.
0 commit comments