Skip to content

Commit

Permalink
Add defaultProp for pane (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWithnell authored and PaulLeCam committed Oct 9, 2017
1 parent f53e0bc commit 58e5c68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export default class Popup extends MapComponent<LeafletElement, Props> {
pane: PropTypes.string,
}

static defaultProps = {
pane: 'popupPane',
}

getOptions(props: Props): Props {
return {
...super.getOptions(props),
Expand Down
4 changes: 4 additions & 0 deletions src/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export default class Tooltip extends MapComponent<LeafletElement, Props> {
pane: PropTypes.string,
}

static defaultProps = {
pane: 'tooltipPane',
}

createLeafletElement(props: Props): LeafletElement {
return new LeafletTooltip(
this.getOptions(props),
Expand Down

0 comments on commit 58e5c68

Please sign in to comment.