react-native-live-markdown icon indicating copy to clipboard operation
react-native-live-markdown copied to clipboard

Text selection on Web doesn't work when passing `markdownStyle` without `useMemo`

Open 289Adam289 opened this issue 1 year ago • 2 comments

Description:

When passing markdownStyle prop directly into MarkdownInputComponent without useMemo first e.g. markdownStyle={{link: {color: 'limegreen'}}} text selection stops working.

https://github.com/user-attachments/assets/c06b81f7-b7a3-4a30-b1cb-5f7cd700784d

Reproduction steps:

  1. Use WebExample app
  2. Change markdownStyle={markdownStyle} to markdownStyle={{link: {color: 'limegreen'}}} and save
  3. Try selecting part of the input

Commit: c352064a2f6c71d457277d958a0270c9d989db5a

289Adam289 avatar Nov 14 '24 16:11 289Adam289

cc @BartoszGrajdek @Skalakid

289Adam289 avatar Nov 14 '24 16:11 289Adam289

Please assign me as I will work on it.

SzymczakJ avatar Nov 15 '24 16:11 SzymczakJ