Skip to content

Commit fb6e758

Browse files
authored
[breaking] Remove backwards compatibility with renderChildren (#283)
1 parent d343342 commit fb6e758

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Calendar.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ export default class Calendar extends Component {
384384
locale,
385385
maxDate,
386386
minDate,
387-
renderChildren,
388387
selectRange,
389388
tileClassName,
390389
tileContent,
@@ -409,7 +408,7 @@ export default class Calendar extends Component {
409408
onClick,
410409
onMouseOver: selectRange ? onMouseOver : null,
411410
tileClassName,
412-
tileContent: tileContent || renderChildren, // For backwards compatibility
411+
tileContent,
413412
tileDisabled,
414413
value,
415414
valueType,
@@ -611,7 +610,6 @@ Calendar.propTypes = {
611610
prev2Label: PropTypes.node,
612611
prevAriaLabel: PropTypes.string,
613612
prevLabel: PropTypes.node,
614-
renderChildren: PropTypes.func, // For backwards compatibility
615613
returnValue: PropTypes.oneOf(['start', 'end', 'range']),
616614
selectRange: PropTypes.bool,
617615
showDoubleView: PropTypes.bool,

0 commit comments

Comments
 (0)