We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a18fe commit ac3e11aCopy full SHA for ac3e11a
src/use-dropdown-menu.ts
@@ -79,6 +79,7 @@ export default function useDropdownMenu<ButtonElement extends HTMLElement = HTML
79
}
80
81
// Initialize object to track if the removal happens before the addition of the event listener
82
+ // -> We're using an object here so that arrow functions below capture the reference and not the value
83
const removalTracker = {
84
removed: false,
85
};
0 commit comments