Skip to content

Commit

Permalink
fix: null check
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed May 19, 2022
1 parent 6bba95e commit 5471af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelectTriggerControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function useSelectTriggerControl(
React.useEffect(() => {
function onGlobalMouseDown(event: MouseEvent) {
// If trigger is customized, Trigger will take control of popupVisible
if (propsRef.current.customizedTrigger) {
if (propsRef.current?.customizedTrigger) {
return;
}

Expand Down

0 comments on commit 5471af9

Please sign in to comment.