Skip to content

Commit 7a96032

Browse files
authored
fix(pill): run pill callback before close dropdown (#231)
1 parent 90e7d7e commit 7a96032

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Pill/Pill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export const Pill = props => {
4848
};
4949

5050
const closeDropdown = setPopupVisibility => {
51-
setPopupVisibility(false);
5251
if (onClose) {
5352
onClose();
5453
}
54+
setPopupVisibility(false);
5555
};
5656

5757
// eslint-disable-next-line react/display-name, react/prop-types

0 commit comments

Comments
 (0)