Closed archiewood closed 1 year ago
Once we fix this, this would be a good candidate for a UI test
I think it's just 2 counts of select-none
-- BigValue
needs the select-none
tailwind class to be toggled when a copy event happens, and the charts need the select-none
that's placed on the container div (by echarts) to be overriden in the generated img
.
@archiewood I am unable to reproduce this issue on the current main branch;
Hmmm interesting.
Maybe this was fixed recently
Are you able to reproduce on the datacouncil demo?
(It's running v15.0.0)
Works properly for me there; which browser are you using? I'm on MacOS with Chrome
One other thing I've noticed on this issue is that the copy-paste can behave differently based on different paste destinations. These are the ones I've been trying it on:
Firefox 🤷🏼♂️
Digging into this a little:
In my testing, putting user-select: all
on the BigValue
/generated img for charts + forcing Svelte to update synchronously via flush()
fixes this. Not sure how big the performance hit of it on large pages would be though.
@csjh do you want to open a PR with the fixes you did?
Bug Description I tried to copy a page into an email. Not all components copied as expected. In particular:
do not copy correctly
Severity
Error Messages and Screenshots
Workarounds for barcharts, download images and insert manually. No clear workaround for BigValue
Environment Information Operating System: MacOS Package versions: 15.0.1