Skip to content

Commit

Permalink
Fixing minimizing the dropdown when clicking outside
Browse files Browse the repository at this point in the history
  • Loading branch information
carloslimasd committed Sep 12, 2024
1 parent 1724150 commit 3db93cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,14 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {

// Handle click on input wrapper(entire div with pills, typeahead, etc) so it doesn't close when input or form pill is clicked
const handleInputWrapperClick = (e: any) => {
e.stopPropagation()
if (
e.target.id === "multiselect_input" ||
e.target.classList.contains("pb_form_pill_tag")
) {
return
}
setIsDropdownClosed(!isDropdownClosed)
e.stopPropagation()
}

// Main function to handle any click inside dropdown
Expand Down

0 comments on commit 3db93cb

Please sign in to comment.