Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 13, 2024
1 parent c0f2750 commit 1cfdedb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/components/src/autocomplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,8 @@ export function useAutocompleteProps( options: UseAutocompleteProps ) {
function _onKeyDown( event: KeyboardEvent ) {
onKeyDownRef.current?.( event );
}
// To do: comment.
element.ownerDocument.addEventListener( 'keydown', _onKeyDown );
element.addEventListener( 'keydown', _onKeyDown );
return () => {
element.ownerDocument.removeEventListener(
'keydown',
_onKeyDown
);
element.removeEventListener( 'keydown', _onKeyDown );
};
}, [] ),
Expand Down

0 comments on commit 1cfdedb

Please sign in to comment.