blitzjs.com
blitzjs.com copied to clipboard
Copying code copies +/- too although they aren't highlighted.
I was just going through the tutorial and noticed when copying the code it copies the +/- too although they are not highlighted.
![Screenshot](https://user-images.githubusercontent.com/29666239/135536791-3624fa73-8e28-435c-9793-df88ecd74478.png)
this copies:
choices: z.array(
+ z.object({id: z.number().optional(), text: z.string()}),
+ ),
I'm using Safari 15.0 on macOS Monterey.
thank you!
I can't replicate in Brave. Maybe it's a problem of Safari
Weird just tried in Brave and the problem exists there too.
I did some research and it seems to be caused by this webkit issue, where -webkit-user-select: none
doesn't select the text, but copies it if your selection starts before it and ends after it.
I tried it on Chrome and the problem doesn't exist there, though it does in Brave...
I found this workaround but this leads to the text being selected but not copied.
I did some research and it seems to be caused by this webkit issue, where
-webkit-user-select: none
doesn't select the text, but copies it if your selection starts before it and ends after it.
It must be, the code generated by Tailwind contains the webkit flag:
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
I also tried in a Mac with Chrome and Firefox: none has this issue, only Safari