Skip to content

Commit d14da20

Browse files
committed
Set default value of toggle correctly
Use undefined instead of null so that the underlying reactstrap component correctly sets the default value of toggle, and doesn't send error messages to the console.
1 parent b50b63f commit d14da20

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)