Describe the bug
If you try to copy text while text is still generated the selection gets reset/lost (because the view gets re-rendered?)
To Reproduce
Steps to reproduce the behavior:
send a message
output starts to show token by token
select text in the output to copy
selected text gets deselected when the next token gets output
Expected behavior
text selection stays stable/selected
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: macOS
Browser: Safari 17.1, Chrome 119
Originally created by @tosh on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/119
**Describe the bug**
If you try to copy text while text is still generated the selection gets reset/lost (because the view gets re-rendered?)
**To Reproduce**
Steps to reproduce the behavior:
1. send a message
2. output starts to show token by token
3. select text in the output to copy
4. selected text gets deselected when the next token gets output
**Expected behavior**
text selection stays stable/selected
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: macOS
- Browser: Safari 17.1, Chrome 119
Hi, Thanks for the suggestion. I'll have to look into this but I believe this is due to how svelte manipulates the DOM directly. Unfortunately I'm currently overwhelmed with all the work, so I'll take a look whenever I can. If you manage to find out a solution in the meantime, please reply to this thread or PR is always welcome!
<!-- gh-comment-id:1817704264 -->
@tjbck commented on GitHub (Nov 19, 2023):
Hi, Thanks for the suggestion. I'll have to look into this but I believe this is due to how svelte manipulates the DOM directly. Unfortunately I'm currently overwhelmed with all the work, so I'll take a look whenever I can. If you manage to find out a solution in the meantime, please reply to this thread or PR is always welcome!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tosh on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/119
Describe the bug
If you try to copy text while text is still generated the selection gets reset/lost (because the view gets re-rendered?)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
text selection stays stable/selected
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
@tjbck commented on GitHub (Nov 19, 2023):
Hi, Thanks for the suggestion. I'll have to look into this but I believe this is due to how svelte manipulates the DOM directly. Unfortunately I'm currently overwhelmed with all the work, so I'll take a look whenever I can. If you manage to find out a solution in the meantime, please reply to this thread or PR is always welcome!