Skip to content

Commit fe89f81

Browse files
authored
Merge pull request #549 from facultyai/popover-console-warning
Set default value of toggle correctly
2 parents b50b63f + d14da20 commit fe89f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/popover/Popover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Popover = props => {
3232
hideArrow={hide_arrow}
3333
// to ensure proper backwards compatibility, the toggle function is only
3434
// passed to the popover if `trigger` is not specified
35-
toggle={trigger ? toggle : null}
35+
toggle={trigger ? toggle : undefined}
3636
trigger={trigger}
3737
{...omit(['setProps'], otherProps)}
3838
data-dash-is-loading={

0 commit comments

Comments
 (0)