Closed dhda closed 3 years ago
Thanks for submitting this! We'll take a look and fix up the desktop bugs right away!
As for iOS ... The whole "desktop-class" browsing introduced the a ton of text-selection bugs on iOS 13. (turns out trying to make a touch screen device act like it has a mouse with hovers etc is a bad bad idea – thanks apple –) We've managed to address some of these bugs, but I know there are still some out there in the wild. We'll do our best and get this fixed ASAP. Seems super annoying. sorry about this.
Thanks again for everything & all the bugs you've been filing! 🙏🏻 Best, J
Hey there!
So we've actually managed to address 99% of this in the v3 release. This turned out to require an absurd amount of cross-browser testing and burnt through hundreds of cups of coffee! Thanks for this head-scratcher! ☕️😅
There are still 3 CSS rules that we had to leave in there to make sure checkboxes work as intended in Firefox with touchscreens (and some windows laptops with cursor + touch screens).
As a side effect of this, there's a really funky edge-case, where if an item's checked, and has styled elements in it (i.e. strikeout or bold), the styled elements will trigger the hover effect on the checkbox (!), but that's it.
Reason being ... Firefox has a quirk, so we had to leave a hacky workaround in the code :
ul[data-checked=false] { pointer-events: none; }
ul[data-checked=false] > li * { pointer-events: all; }
ul[data-checked=false] > li::before { pointer-events: all; }
a) to make sure when you click / tap on the text, the checkbox isn't selected b) to make sure when you click / tap on the checkbox the text isn't selected.
The only side effect of this is if the item is checked, has a styled element inside, and you hover your mouse over the styled element, it shows the intermediate state on the checkbox as if it may be unchecked if you click/tap, but if you click on the styled element, the styled element is selected as expected, and the checkbox isn't un-checked. It's because of a multi-year long bug in Firefox with touch screens & text selections in general. Hopefully once they fix this, we can remove this hack and things will be 100% fixed.
Thanks a lot for filing this and all the help ✌🏻
Describe the bug
This is a few related UI bugs, all about strikethroughs!
To Reproduce
Desktop (1,2):
iOS (3):
Expected behavior
All text should respect double/triple click word selection semantics on all platforms, regardless of being in a checklist or being struck through, and strikethrough text shouldn't trigger hover events that other text does not.
Screenshots
video from Firefox on macOS
System Information:
Desktop:
iOS: