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

bug: combination of number and period

Open YohaanYoon opened this issue 2 years ago • 8 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior: When I enter the combination of number and period in the input box, the message is disappeared.

Expected behavior

A clear and concise description of what you expected to happen.

chrome-capture-2022-3-27

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: 8.1.1
  • stream-chat-css: 2.9.0
  • stream-chat-js: 6.5.0

Desktop (please complete the following information):

  • OS: mac, windows
  • Browser: chrome
  • Version: lastest

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Add any other context about the problem here.

YohaanYoon avatar Apr 27 '22 07:04 YohaanYoon

Thank you for the report, this seems like a bug on our side. We will investigate it in our next release cycle.

petyosi avatar Apr 29 '22 09:04 petyosi

Do you have any plan to fix the bug? Please let me know when will fix it.

YohaanYoon avatar May 23 '22 02:05 YohaanYoon

@YohaanYoon I can't seem to replicate the problem in this basic sandbox. Can you provide some more details about your environment? If possible, please fork the setup so that we can replicate the problem on our side.

petyosi avatar May 23 '22 05:05 petyosi

As you mentioned, the demo app does not reproduce the issue. I will check it.

YohaanYoon avatar May 25 '22 04:05 YohaanYoon

@petyosi The MessageList and MessageInput code is as follows:

return (
      <div>
        <S.AppBar />
        <Chat client={chatClient} theme="messaging light" i18nInstance={i18n}>
          <Channel channel={channel}>
            <Window>
              <MessageList
                messageActions={MESSAGE_ACTIONS_CLASSTALK}
              />
              <MessageInput
                doFileUploadRequest={doFileUploadRequest}
                doImageUploadRequest={doFileUploadRequest}
              />
            </Window>
            <Thread />
          </Channel>
        </Chat>
      </div>
    );

I have one question. Do you know why combination of number and period is converted to <ol><li> not <p>? Please refer to attached image.

스크린샷 2022-06-20 오후 2 01 09

YohaanYoon avatar Jun 20 '22 05:06 YohaanYoon

I'm not 100% what you mean, but in general, this can be due to the built-in markdown processing. Check this - https://markdownlivepreview.com/

petyosi avatar Jun 20 '22 05:06 petyosi

I will check it. Thanks

YohaanYoon avatar Jun 20 '22 07:06 YohaanYoon

Blocked by #1560.

arnautov-anton avatar Sep 13 '22 09:09 arnautov-anton

Closing, resolved in #1824.

arnautov-anton avatar Jan 17 '23 11:01 arnautov-anton