react-chat-elements icon indicating copy to clipboard operation
react-chat-elements copied to clipboard

MessageList downButton prop not true by default anymore

Open olconstant opened this issue 2 years ago • 0 comments

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%'

olconstant avatar Sep 01 '23 03:09 olconstant