react-chat-elements
react-chat-elements copied to clipboard
MessageList downButton prop not true by default anymore
The MessageList downButton prop is not true by default anymore, but the doc says that it should be true:
https://detaysoft.github.io/docs-react-chat-elements/docs/messagelist#message-list-props
I guess it's missing the default value in the props destructuring, it should be downButton = true instead of downButton:
const MessageList: FC<IMessageListProps> = ({
referance = null,
lockable = false,
toBottomHeight = 300,
downButton = true,
...props
}) => {
Or the check should check for false instead of true:
{downButton !== false && _downButton && toBottomHeight !== '100%'