Skip to content

Commit

Permalink
Pass interaction event between methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dotherightthing committed Sep 24, 2020
1 parent d1b667e commit 3be1186
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/classes/keyboard-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,12 @@ class KeyboardHelpers {
* @summary React when a keyboardNavigableElement is focussed
* @description Note: additional callbacks are implemented in the host component using Mutation Observers
* @memberof KeyboardHelpers
*
* @param {object|undefined} e - Keydown event
*/
onKeyboardNavigableElementFocus() {
onKeyboardNavigableElementFocus(e) {
if (this.selectionFollowsFocus) {
this.selectFocussed();
this.selectFocussed(e);
}
}

Expand Down

0 comments on commit 3be1186

Please sign in to comment.