Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Jul 21, 2022
1 parent 9c6d614 commit 6c22bbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useGridNativeEventListener = <Api extends GridApiCommon, E extends
targetElement = ref && ref.current ? ref.current : null;
}

if (targetElement && wrapHandler && eventName && !added) {
if (targetElement && eventName && !added) {
logger.debug(`Binding native ${eventName} event`);
targetElement.addEventListener(eventName, wrapHandler, options);
const boundElem = targetElement;
Expand Down

0 comments on commit 6c22bbb

Please sign in to comment.