Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageList downButton prop not true by default anymore #206

Open
olconstant opened this issue Sep 1, 2023 · 0 comments
Open

MessageList downButton prop not true by default anymore #206

olconstant opened this issue Sep 1, 2023 · 0 comments

Comments

@olconstant
Copy link

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%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant