Skip to content

MessageList downButton prop not true by default anymore #206

Open

Description

@olconstant

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions