Skip to content

Commit

Permalink
fix: fixed onToggle prop (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang authored Nov 4, 2022
1 parent d726ad1 commit fe21655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dropdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Dropdown = React.forwardRef(
const handleToggle = (isOpen, event, metadata) => {
if (isOpen) {
setInternalShow(true);
onToggle?.(isOpen, event, metadata);
return;
}
let { source } = { ...metadata };
Expand Down

0 comments on commit fe21655

Please sign in to comment.